C# Class Encog.Neural.Networks.Logic.HopfieldLogic

Inheritance: ThermalLogic
Mostra file Open project: encog/encog-silverlight-core

Public Methods

Method Description
AddPattern ( INeuralData 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.

Run ( ) : void

Perform one Hopfield iteration.

RunUntilStable ( int max ) : int

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

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 ( INeuralData pattern ) : void
pattern INeuralData The pattern to train for.
return void

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