Neuroph

org.neuroph.nnet.learning
Class HopfieldLearning

java.lang.Object
  extended by java.util.Observable
      extended by org.neuroph.core.learning.LearningRule
          extended by org.neuroph.nnet.learning.HopfieldLearning
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable

public class HopfieldLearning
extends LearningRule

The HopfieldLearning class implements learning algorithm for the Hopfield neural network.

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.
 
Fields inherited from class org.neuroph.core.learning.LearningRule
neuralNetwork
 
Constructor Summary
HopfieldLearning(NeuralNetwork neuralNetwork)
          Creates new HopfieldLearning for the specified neural network
 
Method Summary
 void learn(TrainingSet trainingSet)
          Calculates weights for the hopfield net to learn the specified training set
 
Methods inherited from class org.neuroph.core.learning.LearningRule
getTrainingSet, isStopped, notifyChange, run, setTrainingSet, stopLearning
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.

See Also:
Constant Field Values
Constructor Detail

HopfieldLearning

public HopfieldLearning(NeuralNetwork neuralNetwork)
Creates new HopfieldLearning for the specified neural network

Parameters:
neuralNetwork -
Method Detail

learn

public void learn(TrainingSet trainingSet)
Calculates weights for the hopfield net to learn the specified training set

Specified by:
learn in class LearningRule
Parameters:
trainingSet - training set to learn

Neuroph