Exemple #1
0
        protected void _runAndBackPropagate(BatchPair tv)
        {
            VectorBatch result = _component.Run(tv.First);

            _costAccumulator += _costFunction.Cost(tv.Second, result);
            _component.BackPropagate(_costFunction.Gradient(tv.Second, result));
        }
Exemple #2
0
 public BatchPairNode(BatchPair pair)
 {
     Pair = pair;
     Next = null;
 }