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.
|
Method | Description | |
---|---|---|
ConvertHopfieldMatrix ( Matrix delta ) : void |
Update the Hopfield weights after training.
|
public AddPattern ( INeuralData pattern ) : void | ||
pattern | INeuralData | The pattern to train for. |
return | void |
public RunUntilStable ( int max ) : int | ||
max | int | The maximum number of cycles to run before giving up. |
return | int |