Exemple #1
0
 //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);
 }
Exemple #2
0
 //Calculates a new Delta by calling the Delta function in NeuralMath. Used when propagating back.
 public void CalculateDelta()
 {
     delta = NeuralMath.Delta(output, children, this);
 }