C# Class Encog.Neural.Thermal.HopfieldNetwork

Inheritance: ThermalNetwork
Show file Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
AddPattern ( IMLData pattern ) : void

Train the neural network for the specified pattern. The neural network can be trained for more than one pattern. To do this simply call the train method more than once.

Compute ( IMLData input ) : IMLData

Note: for Hopfield networks, you will usually want to call the "run" method to compute the output. This method can be used to copy the input data to the current state. A single iteration is then run, and the new current state is returned.

HopfieldNetwork ( ) : System

Default constructor.

HopfieldNetwork ( int neuronCount ) : System

Construct a Hopfield with the specified neuron count.

Run ( ) : void

Perform one Hopfield iteration.

RunUntilStable ( int max ) : int

Run the network until it becomes stable and does not change from more runs.

UpdateProperties ( ) : void

Private Methods

Method Description
ConvertHopfieldMatrix ( Matrix delta ) : void

Update the Hopfield weights after training.

Method Details

AddPattern() public method

Train the neural network for the specified pattern. The neural network can be trained for more than one pattern. To do this simply call the train method more than once.
public AddPattern ( IMLData pattern ) : void
pattern IMLData The pattern to train for.
return void

Compute() public final method

Note: for Hopfield networks, you will usually want to call the "run" method to compute the output. This method can be used to copy the input data to the current state. A single iteration is then run, and the new current state is returned.
public final Compute ( IMLData input ) : IMLData
input IMLData The input pattern.
return IMLData

HopfieldNetwork() public method

Default constructor.
public HopfieldNetwork ( ) : System
return System

HopfieldNetwork() public method

Construct a Hopfield with the specified neuron count.
public HopfieldNetwork ( int neuronCount ) : System
neuronCount int The neuron count.
return System

Run() public method

Perform one Hopfield iteration.
public Run ( ) : void
return void

RunUntilStable() public method

Run the network until it becomes stable and does not change from more runs.
public RunUntilStable ( int max ) : int
max int The maximum number of cycles to run before giving up.
return int

UpdateProperties() public method

public UpdateProperties ( ) : void
return void