示例#1
0
 /// <summary>
 /// Batch. Analyze the current pattern.
 /// </summary>
 public void RecursiveBatchEvaluateGradient()
 {
     if (_training != null)
     {
         for (int i = 0; i < Count && i < _training.Length; i++)
         {
             this[i].CurrentTraining = _training[i];
         }
     }
     for (int i = 0; i < Count; i++)
     {
         this[i].BatchEvaluateGradient();
     }
     if (_sourceLayer != null)
     {
         _sourceLayer.RecursiveBatchEvaluateGradient();
     }
 }
示例#2
0
 /// <summary>
 /// Analyze the current pattern for batch processing.
 /// </summary>
 public void BatchAnalyzeCurrentPattern()
 {
     _lastLayer.RecursiveBatchEvaluateGradient();
 }