//Calculate new input and threshold weights by calling the NewWeight and NewThresholdWeight function in Neural Math. Used when propagating forward. public void CalculateWeights() { foreach (Neuron n in parents.Keys.ToArray()) { parents[n] = NeuralMath.NewWeight(parents[n], n, this); } thresholdWeight = NeuralMath.NewThresholdWeight(thresholdWeight, this); }
//Calculates a new Delta by calling the Delta function in NeuralMath. Used when propagating back. public void CalculateDelta() { delta = NeuralMath.Delta(output, children, this); }