org.encog.ml.train.strategy.end
public class EarlyStoppingStrategy extends Object implements EndTrainingStrategy
| Constructor and Description |
|---|
EarlyStoppingStrategy(MLDataSet theValidationSet,
MLDataSet theTestSet)
Construct the early stopping strategy.
|
EarlyStoppingStrategy(MLDataSet theValidationSet,
MLDataSet theTestSet,
int theStripLength,
double theAlpha,
double theMinEfficiency)
Construct the early stopping strategy.
|
| Modifier and Type | Method and Description |
|---|---|
double |
geteOpt() |
double |
getGl() |
double |
getMinEfficiency() |
double |
getStripEfficiency() |
int |
getStripLength() |
double |
getStripOpt() |
double |
getTestError() |
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 EarlyStoppingStrategy(MLDataSet theValidationSet, MLDataSet theTestSet)
theValidationSet - The validation set.theTestSet - The test set.public EarlyStoppingStrategy(MLDataSet theValidationSet, MLDataSet theTestSet, int theStripLength, double theAlpha, double theMinEfficiency)
theValidationSet - theTestSet - theStripLength - The number of training set elements to validate.theAlpha - Stop once GL is below this value.theMinEfficiency - The minimum training efficiency to stop.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 getTestError()
public double getValidationError()
public double geteOpt()
public double getGl()
public int getStripLength()
public double getStripOpt()
public double getStripEfficiency()
public double getMinEfficiency()
Copyright © 2014. All Rights Reserved.