1 namespace SpikingNeuronNetwork.Lib.Training
19 foreach (var synapse
in errorDerivativeParameters.GetSynapses())
21 trainingStats.CurrentNetwork.SetSynapticWeight(synapse,
22 trainingStats.CurrentNetwork.GetSynapticWeight(synapse) -
23 trainingStats.LearningRate * errorDerivativeParameters.GetErrorDerivative(synapse) -
24 trainingStats.MomentumLearningRate * (previousErrorDerivativeParameters == null ? 0 : previousErrorDerivativeParameters.GetErrorDerivative(synapse)));
Training Algorithm Interface
Steepest Descent Training With Momentum Class, inherits from ITrainingAlgorithm
void UpdateWeights(TrainingStats trainingStats, IErrorDerivativeParameters errorDerivativeParameters, IErrorDerivativeParameters previousErrorDerivativeParameters)
Update the weights in the current network according to the training algorithm
Error Derivative Parameters Interface
Training Statistics Class