C# Class Accord.Neuro.Learning.PerceptronLearning

Perceptron learning algorithm.

This learning algorithm is used to train one layer neural network of Activation Neurons with the Threshold activation function.

See information about Perceptron and its learning algorithm.

Inheritance: ISupervisedLearning
Datei anzeigen Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
PerceptronLearning ( ActivationNetwork network ) : System

Initializes a new instance of the PerceptronLearning class.

Run ( double input, double output ) : double

Runs learning iteration.

Runs one learning iteration and updates neuron's weights in the case if neuron's output is not equal to the desired output.

RunEpoch ( double input, double output ) : double

Runs learning epoch.

The method runs one learning epoch, by calling Run method for each vector provided in the input array.

Method Details

PerceptronLearning() public method

Initializes a new instance of the PerceptronLearning class.
Invalid nuaral network. It should have one layer only.
public PerceptronLearning ( ActivationNetwork network ) : System
network ActivationNetwork Network to teach.
return System

Run() public method

Runs learning iteration.

Runs one learning iteration and updates neuron's weights in the case if neuron's output is not equal to the desired output.

public Run ( double input, double output ) : double
input double Input vector.
output double Desired output vector.
return double

RunEpoch() public method

Runs learning epoch.

The method runs one learning epoch, by calling Run method for each vector provided in the input array.

public RunEpoch ( double input, double output ) : double
input double Array of input vectors.
output double Array of output vectors.
return double