|
The Encog Project | ||||||||
| 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.competitive.CompetitiveTraining
public class CompetitiveTraining
This class implements competitive training, which would be used in a winner-take-all neural network, such as the self organizing map (SOM). This is an unsupervised training method, no ideal data is needed on the training set. If ideal data is provided, it will be ignored. A neighborhood function is required to determine the degree to which neighboring neurons (to the winning neuron) are updated by each training iteration.
| Constructor Summary | |
|---|---|
CompetitiveTraining(BasicNetwork network,
double learningRate,
NeuralDataSet training,
NeighborhoodFunction neighborhood)
Create an instance of competitive training. |
|
| Method Summary | |
|---|---|
double |
getLearningRate()
|
NeighborhoodFunction |
getNeighborhood()
|
BasicNetwork |
getNetwork()
Get the current best network from the training. |
void |
iteration()
Perform one training iteration. |
void |
setLearningRate(double rate)
Set the learning rate. |
| Methods inherited from class org.encog.neural.networks.training.BasicTraining |
|---|
addStrategy, getError, getStrategies, getTraining, postIteration, preIteration, setError, setTraining |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompetitiveTraining(BasicNetwork network,
double learningRate,
NeuralDataSet training,
NeighborhoodFunction neighborhood)
network - The network to train.learningRate - The learning rate, how much to apply per iteration.training - The training set (unsupervised).neighborhood - The neighborhood function to use.| Method Detail |
|---|
public double getLearningRate()
getLearningRate in interface LearningRatepublic NeighborhoodFunction getNeighborhood()
public BasicNetwork getNetwork()
Train
getNetwork in interface Trainpublic void iteration()
iteration in interface Trainpublic void setLearningRate(double rate)
setLearningRate in interface LearningRaterate - The learning rate.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||