|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
org.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 NeuralNetwork |
neuralNetwork
Neural network to train |
Constructor Summary | |
---|---|
LearningRule()
Creates instance of learning rule |
|
LearningRule(NeuralNetwork network)
Sets neural network for this learning rule |
Method Summary | |
---|---|
NeuralNetwork |
getNeuralNetwork()
Gets neural network |
TrainingSet |
getTrainingSet()
Gets training set |
boolean |
isStopped()
Returns true if learning has stopped, false otherwise |
abstract void |
learn(TrainingSet trainingSet)
Override this method to implement specific learning procedures |
protected void |
notifyChange()
Notify observers about change |
void |
run()
Method from Runnable interface for running learning procedure in separate thread. |
void |
setNeuralNetwork(NeuralNetwork neuralNetwork)
Sets neural network for this learning rule |
void |
setTrainingSet(TrainingSet trainingSet)
Sets training set for this learning rule |
void |
stopLearning()
Stops learning |
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 |
---|
protected NeuralNetwork neuralNetwork
Constructor Detail |
---|
public LearningRule()
public LearningRule(NeuralNetwork network)
network
- neural network to trainMethod Detail |
---|
public void setTrainingSet(TrainingSet trainingSet)
trainingSet
- training set for this learning rulepublic TrainingSet getTrainingSet()
public NeuralNetwork getNeuralNetwork()
public void setNeuralNetwork(NeuralNetwork neuralNetwork)
neuralNetwork
- neural network for this learning rulepublic void run()
run
in interface java.lang.Runnable
public void stopLearning()
public boolean isStopped()
protected void notifyChange()
public abstract void learn(TrainingSet trainingSet)
trainingSet
- training set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |