org.encog.neural.cpn.training
Class TrainOutstar
- java.lang.Object
-
- org.encog.ml.train.BasicTraining
-
- org.encog.neural.cpn.training.TrainOutstar
-
- All Implemented Interfaces:
- MLTrain, LearningRate
public class TrainOutstar extends BasicTraining implements LearningRate
Used for Instar training of a CPN neural network. A CPN network is a hybrid supervised/unsupervised network. The Outstar training handles the supervised portion of the training.
-
-
Constructor Summary
Constructors Constructor and Description TrainOutstar(CPN theNetwork, MLDataSet theTraining, double theLearningRate)Construct the outstar trainer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancanContinue()doublegetLearningRate()MLMethodgetMethod()Get the current best machine learning method from the training.voiditeration()Perform one iteration of training.TrainingContinuationpause()Pause the training to continue later.voidresume(TrainingContinuation state)Resume training.voidsetLearningRate(double rate)Set the learning rate.-
Methods inherited from class org.encog.ml.train.BasicTraining
addStrategy, finishTraining, getError, getImplementationType, getIteration, getStrategies, getTraining, isTrainingDone, iteration, postIteration, preIteration, setError, setIteration, setTraining
-
-
-
-
Method Detail
-
canContinue
public boolean canContinue()
- Specified by:
canContinuein interfaceMLTrain- Returns:
- True if the training can be paused, and later continued.
-
getLearningRate
public double getLearningRate()
- Specified by:
getLearningRatein interfaceLearningRate- Returns:
- The learning rate.
-
getMethod
public MLMethod getMethod()
Get the current best machine learning method from the training.
-
iteration
public void iteration()
Perform one iteration of training.
-
pause
public TrainingContinuation pause()
Pause the training to continue later.
-
resume
public void resume(TrainingContinuation state)
Resume training.
-
setLearningRate
public void setLearningRate(double rate)
Set the learning rate.- Specified by:
setLearningRatein interfaceLearningRate- Parameters:
rate- The new learning rate
-
-
DMelt 3.0 © DataMelt by jWork.ORG