示例#1
0
 public void BackpropUpdatesInputErrors()
 {
     neuronToTest.Backprop(learningRate);
     foreach (Neuron inputNeuron in testInputs)
     {
         if (inputNeuron.Error != (expected - givenInput) * 2)
         {
             Assert.Fail();
         }
     }
     // if any of our input neurons have not had their error updated, fail
 }