protected override void PrepareToLearning(INet net)
 {
     _b = Matrix.CreateI(net.WeightsCount, net.WeightsCount, () => new RealNumber(1), () => new RealNumber(0)); //b0
     _weights = net.GetWeights(); //x0
     _inputs = net.GetLastInputsForWeights();
     _gradient = null;
     _prevGradient = null;
     _prevStep = null;
 }
Example #2
0
 protected override void PrepareToLearning(INet net)
 {
     _weights = net.GetWeights();
     _outputs = net.GetLastInputsForWeights();
 }