org.encog.ml.train
public interface MLTrain
Modifier and Type | Method and Description |
---|---|
void |
addStrategy(Strategy strategy)
Training strategies can be added to improve the training results.
|
boolean |
canContinue() |
void |
finishTraining()
Should be called once training is complete and no more iterations are
needed.
|
double |
getError() |
TrainingImplementationType |
getImplementationType() |
int |
getIteration() |
MLMethod |
getMethod()
Get the current best machine learning method from the training.
|
List<Strategy> |
getStrategies() |
MLDataSet |
getTraining() |
boolean |
isTrainingDone() |
void |
iteration()
Perform one iteration of training.
|
void |
iteration(int count)
Perform a number of training iterations.
|
TrainingContinuation |
pause()
Pause the training to continue later.
|
void |
resume(TrainingContinuation state)
Resume training.
|
void |
setError(double error) |
void |
setIteration(int iteration)
Set the current training iteration.
|
TrainingImplementationType getImplementationType()
boolean isTrainingDone()
MLDataSet getTraining()
void iteration()
double getError()
void finishTraining()
void iteration(int count)
count
- The number of iterations to perform.int getIteration()
boolean canContinue()
TrainingContinuation pause()
void resume(TrainingContinuation state)
state
- The training continuation object to use to continue.void addStrategy(Strategy strategy)
strategy
- The strategy to add.MLMethod getMethod()
void setError(double error)
error
- Set the current error rate. This is usually used by training
strategies.void setIteration(int iteration)
iteration
- Iteration.Copyright © 2014. All Rights Reserved.