Пример #1
0
 public void SetTotalAnimFrames(int totalAnimFrames)
 {
     _totalAnimFrames = totalAnimFrames;
     if (_scoreHistogramData == null)
     {
         var columns = _totalAnimFrames / agentParameters.numberOfActionsBetweenDecisions;
         _scoreHistogramData = new ScoreHistogramData(columns, 30);
     }
     Rewards = _scoreHistogramData.GetAverages().Select(x => (float)x).ToList();
 }
Пример #2
0
 // Sets reward
 public void SetTotalAnimFrames(int totalAnimFrames)
 {
     _totalAnimFrames = totalAnimFrames;
     if (_scoreHistogramData == null)
     {
         var columns = _totalAnimFrames;
         if (_decisionRequester?.DecisionPeriod > 1)
         {
             columns /= _decisionRequester.DecisionPeriod;
         }
         _scoreHistogramData = new ScoreHistogramData(columns, 30);
     }
     Rewards = _scoreHistogramData.GetAverages().Select(x => (float)x).ToList();
 }