|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.neural.networks.training.BasicTraining
org.encog.neural.networks.training.hebbian.HebbianTraining
public class HebbianTraining
This class implements Hebbian learning for Enocg. This class specifically handles the following three cases of Hebbian learning. Supervised Hebbian Learning Unsupervised Hebbian Learning OJA Unsupervised Hebbian Learning Choosing between supervised and unsupervised is simply a matter of passing in training data that has ideal outputs, in the case of supervised, or lacks ideal outputs, in the case of unsupervised. OJA's rule can be used with unsupervised training. It can be specified using a flag to the constructor. For more information on OJA's rule, see: http://en.wikipedia.org/wiki/Oja%27s_rule
| Constructor Summary | |
|---|---|
HebbianTraining(BasicNetwork network,
NeuralDataSet training,
boolean oja,
double learningRate)
Construct a Hebbian training object. |
|
| Method Summary | |
|---|---|
double |
getLearningRate()
|
BasicNetwork |
getNetwork()
Get the current best network from the training. |
NeuralDataSet |
getTraining()
|
boolean |
isOja()
|
boolean |
isSupervised()
|
void |
iteration()
Perform a single training iteration. |
void |
setLearningRate(double rate)
Set the learning date. |
| Methods inherited from class org.encog.neural.networks.training.BasicTraining |
|---|
addStrategy, finishTraining, getCloud, getError, getIteration, getStrategies, isTrainingDone, iteration, postIteration, preIteration, setCloud, setError, setIteration, setTraining |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HebbianTraining(BasicNetwork network,
NeuralDataSet training,
boolean oja,
double learningRate)
network - The network to train.training - The training data.oja - True of OJA's rule should be used. This can only be used with
unsupervised data.learningRate - The learning rate.| Method Detail |
|---|
public double getLearningRate()
getLearningRate in interface LearningRatepublic BasicNetwork getNetwork()
Train
getNetwork in interface Trainpublic NeuralDataSet getTraining()
getTraining in interface TraingetTraining in class BasicTrainingpublic boolean isOja()
public boolean isSupervised()
public void iteration()
iteration in interface Trainpublic void setLearningRate(double rate)
setLearningRate in interface LearningRaterate - The new learning rate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||