org.encog.neural.som.training.clustercopy
Class SOMClusterCopyTraining
- java.lang.Object
-
- org.encog.ml.train.BasicTraining
-
- org.encog.neural.som.training.clustercopy.SOMClusterCopyTraining
-
- All Implemented Interfaces:
- MLTrain
public class SOMClusterCopyTraining extends BasicTraining
SOM cluster copy is a very simple trainer for SOM's. Using this trainer all of the training data is copied to the SOM weights. This can provide a functional SOM, or can be used as a starting point for training. For now, this trainer will only work if you have equal or fewer training elements to the number of output neurons. Eventually I hope to expand this by using KMeans clustering.
-
-
Constructor Summary
Constructors Constructor and Description SOMClusterCopyTraining(SOM network, MLDataSet training)Construct the object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancanContinue()MLMethodgetMethod()Get the current best machine learning method from the training.booleanisTrainingDone()voiditeration()Perform one iteration of training.TrainingContinuationpause()Pause the training to continue later.voidresume(TrainingContinuation state)Resume training.-
Methods inherited from class org.encog.ml.train.BasicTraining
addStrategy, finishTraining, getError, getImplementationType, getIteration, getStrategies, getTraining, iteration, postIteration, preIteration, setError, setIteration, setTraining
-
-
-
-
Method Detail
-
canContinue
public final boolean canContinue()
- Returns:
- True if the training can be paused, and later continued.
-
isTrainingDone
public boolean isTrainingDone()
- Specified by:
isTrainingDonein interfaceMLTrain- Overrides:
isTrainingDonein classBasicTraining- Returns:
- True if training can progress no further.
-
getMethod
public final MLMethod getMethod()
Get the current best machine learning method from the training.- Returns:
- The best machine learning method.
-
iteration
public void iteration()
Perform one iteration of training.
-
pause
public TrainingContinuation pause()
Pause the training to continue later.- Returns:
- A training continuation object.
-
resume
public void resume(TrainingContinuation state)
Resume training.- Parameters:
state- The training continuation object to use to continue.
-
-
DMelt 3.0 © DataMelt by jWork.ORG