org.neuroph.core.learning
Class LearningRule
- java.lang.Object
-
- org.neuroph.core.learning.LearningRule
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- HopfieldLearning, IterativeLearning, KohonenLearning
public abstract class LearningRule extends java.lang.Object implements java.io.SerializableBase class for all neural network learning algorithms. It provides the general principles for training neural network.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description LearningRule()Creates new instance of learning rule
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description voidaddListener(LearningEventListener listener)NeuralNetworkgetNeuralNetwork()Gets neural networkDataSetgetTrainingSet()Gets training setbooleanisStopped()Returns true if learning has stopped, false otherwiseabstract voidlearn(DataSet trainingSet)Override this method to implement specific learning proceduresvoidremoveListener(LearningEventListener listener)voidsetNeuralNetwork(NeuralNetwork neuralNetwork)Sets neural network for this learning rulevoidsetTrainingSet(DataSet trainingSet)Sets training set for this learning rulevoidstopLearning()Stops learning
-
-
-
Method Detail
-
setTrainingSet
public void setTrainingSet(DataSet trainingSet)
Sets training set for this learning rule- Parameters:
trainingSet- training set for this learning rule
-
getTrainingSet
public DataSet getTrainingSet()
Gets training set- Returns:
- training set
-
getNeuralNetwork
public NeuralNetwork getNeuralNetwork()
Gets neural network- Returns:
- neural network
-
setNeuralNetwork
public void setNeuralNetwork(NeuralNetwork neuralNetwork)
Sets neural network for this learning rule- Parameters:
neuralNetwork- neural network for this learning rule
-
stopLearning
public void stopLearning()
Stops learning
-
isStopped
public boolean isStopped()
Returns true if learning has stopped, false otherwise- Returns:
- true if learning has stopped, false otherwise
-
addListener
public void addListener(LearningEventListener listener)
-
removeListener
public void removeListener(LearningEventListener listener)
-
learn
public abstract void learn(DataSet trainingSet)
Override this method to implement specific learning procedures- Parameters:
trainingSet- training set
-
-
DMelt 3.0 © DataMelt by jWork.ORG