|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neuroph.core.learning.LearningRule
public abstract class LearningRule
Base class for all neural network learning algorithms. It provides the general principles for training neural network.
Field Summary | |
---|---|
protected EventListenerList |
listeners
List of learning rule listeners |
protected NeuralNetwork |
neuralNetwork
Neural network to train |
Constructor Summary | |
---|---|
LearningRule()
Creates new instance of learning rule |
Method Summary | |
---|---|
void |
addListener(LearningEventListener listener)
|
protected void |
fireLearningEvent(LearningEvent evt)
|
NeuralNetwork |
getNeuralNetwork()
Gets neural network |
DataSet |
getTrainingSet()
Gets training set |
boolean |
isStopped()
Returns true if learning has stopped, false otherwise |
abstract void |
learn(DataSet trainingSet)
Override this method to implement specific learning procedures |
protected void |
onStart()
Prepares the learning rule to run by setting stop flag to false |
void |
removeListener(LearningEventListener listener)
|
void |
setNeuralNetwork(NeuralNetwork neuralNetwork)
Sets neural network for this learning rule |
void |
setTrainingSet(DataSet trainingSet)
Sets training set for this learning rule |
void |
stopLearning()
Stops learning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected NeuralNetwork neuralNetwork
protected EventListenerList listeners
Constructor Detail |
---|
public LearningRule()
Method Detail |
---|
public void setTrainingSet(DataSet trainingSet)
trainingSet
- training set for this learning rulepublic DataSet getTrainingSet()
public NeuralNetwork getNeuralNetwork()
public void setNeuralNetwork(NeuralNetwork neuralNetwork)
neuralNetwork
- neural network for this learning ruleprotected void onStart()
public void stopLearning()
public boolean isStopped()
public void addListener(LearningEventListener listener)
public void removeListener(LearningEventListener listener)
protected void fireLearningEvent(LearningEvent evt)
public abstract void learn(DataSet trainingSet)
trainingSet
- training set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |