org.encog.neural.cpn.training
public class TrainInstar extends BasicTraining implements LearningRate
Constructor and Description |
---|
TrainInstar(CPN theNetwork,
MLDataSet theTraining,
double theLearningRate,
boolean theInitWeights)
Construct the instar training object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canContinue() |
double |
getLearningRate() |
CPN |
getMethod()
Get the current best machine learning method from the training.
|
void |
iteration()
Perform one iteration of training.
|
TrainingContinuation |
pause()
Pause the training to continue later.
|
void |
resume(TrainingContinuation state)
Resume training.
|
void |
setLearningRate(double rate)
Set the learning rate.
|
addStrategy, finishTraining, getError, getImplementationType, getIteration, getStrategies, getTraining, isTrainingDone, iteration, postIteration, preIteration, setError, setIteration, setTraining
public TrainInstar(CPN theNetwork, MLDataSet theTraining, double theLearningRate, boolean theInitWeights)
theNetwork
- The network to be trained.theTraining
- The training data.theLearningRate
- The learning rate.theInitWeights
- True, if the weights should be initialized from the training
data. If set to true, then you must have the same number of
training elements as instar neurons.public boolean canContinue()
canContinue
in interface MLTrain
public double getLearningRate()
getLearningRate
in interface LearningRate
public CPN getMethod()
public void iteration()
public TrainingContinuation pause()
public void resume(TrainingContinuation state)
public void setLearningRate(double rate)
setLearningRate
in interface LearningRate
rate
- The new learning rateCopyright © 2014. All Rights Reserved.