|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MLTrain
Defines a training method for a machine learning method. Most MLMethod objects need to be trained in some way before they are ready for use.
| Method Summary | |
|---|---|
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()
Get the current error percent from the training. |
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. |
| Method Detail |
|---|
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()
List<Strategy> getStrategies()
void setError(double error)
error - Set the current error rate. This is usually used by training
strategies.void setIteration(int iteration)
iteration - Iteration.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||