org.encog.ml.train
public abstract class BasicTraining extends Object implements MLTrain
| Constructor and Description |
|---|
BasicTraining()
Used for serialization.
|
BasicTraining(TrainingImplementationType implementationType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStrategy(Strategy strategy)
Training strategies can be added to improve the training results.
|
void |
finishTraining()
Should be called after training has completed and the iteration method
will not be called any further.
|
double |
getError() |
TrainingImplementationType |
getImplementationType() |
int |
getIteration() |
List<Strategy> |
getStrategies() |
MLDataSet |
getTraining() |
boolean |
isTrainingDone() |
void |
iteration(int count)
Perform the specified number of training iterations.
|
void |
postIteration()
Call the strategies after an iteration.
|
void |
preIteration()
Call the strategies before an iteration.
|
void |
setError(double error) |
void |
setIteration(int iteration)
Set the current training iteration.
|
void |
setTraining(MLDataSet training)
Set the training object that this strategy is working with.
|
public BasicTraining()
public BasicTraining(TrainingImplementationType implementationType)
public void addStrategy(Strategy strategy)
addStrategy in interface MLTrainstrategy - The strategy to add.public void finishTraining()
finishTraining in interface MLTrainpublic double getError()
getError in interface MLTrainpublic int getIteration()
getIteration in interface MLTrainpublic List<Strategy> getStrategies()
getStrategies in interface MLTrainpublic MLDataSet getTraining()
getTraining in interface MLTrainpublic boolean isTrainingDone()
isTrainingDone in interface MLTrainpublic void iteration(int count)
public void postIteration()
public void preIteration()
public void setError(double error)
public void setIteration(int iteration)
MLTrainsetIteration in interface MLTrainiteration - the iteration to setpublic void setTraining(MLDataSet training)
training - The training object.public TrainingImplementationType getImplementationType()
getImplementationType in interface MLTrainCopyright © 2014. All Rights Reserved.