AForge.Neuro.Learning.BackPropagationLearning.Run C# (CSharp) Method

Run() public method

Runs learning iteration.

Runs one learning iteration and updates neuron's weights.

public Run ( double input, double output ) : double
input double Input vector.
output double Desired output vector.
return double
        public double Run( double[] input, double[] output )
        {
            // compute the network's output
            network.Compute( input );

            // calculate network error
            double error = CalculateError( output );

            // calculate weights updates
            CalculateUpdates( input );

            // update the network
            UpdateNetwork( );

            return error;
        }