org.encog.ml.train.strategy.end
public class SimpleEarlyStoppingStrategy extends Object implements EndTrainingStrategy
| Constructor and Description |
|---|
SimpleEarlyStoppingStrategy(MLDataSet theValidationSet) |
SimpleEarlyStoppingStrategy(MLDataSet theValidationSet,
int theCheckFrequency) |
| Modifier and Type | Method and Description |
|---|---|
double |
getTrainingError() |
double |
getValidationError() |
void |
init(MLTrain theTrain)
Initialize this strategy.
|
void |
postIteration()
Called just after a training iteration.
|
void |
preIteration()
Called just before a training iteration.
|
boolean |
shouldStop() |
public SimpleEarlyStoppingStrategy(MLDataSet theValidationSet)
public SimpleEarlyStoppingStrategy(MLDataSet theValidationSet, int theCheckFrequency)
public void init(MLTrain theTrain)
public void preIteration()
preIteration in interface Strategypublic void postIteration()
postIteration in interface Strategypublic boolean shouldStop()
shouldStop in interface EndTrainingStrategypublic double getTrainingError()
public double getValidationError()
Copyright © 2014. All Rights Reserved.