|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ml.train.strategy.StopTrainingStrategy
public class StopTrainingStrategy
This strategy will indicate once training is no longer improving the neural network by a specified amount, over a specified number of cycles. This allows the program to automatically determine when to stop training.
Field Summary | |
---|---|
static double |
DEFAULT_MIN_IMPROVEMENT
The default minimum improvement before training stops. |
static int |
DEFAULT_TOLERATE_CYCLES
The default number of cycles to tolerate. |
Constructor Summary | |
---|---|
StopTrainingStrategy()
Construct the strategy with default options. |
|
StopTrainingStrategy(double minImprovement,
int toleratedCycles)
Construct the strategy with the specified parameters. |
Method Summary | |
---|---|
void |
init(MLTrain train)
Initialize this strategy. |
void |
postIteration()
Called just after a training iteration. |
void |
preIteration()
Called just before a training iteration. |
boolean |
shouldStop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double DEFAULT_MIN_IMPROVEMENT
public static final int DEFAULT_TOLERATE_CYCLES
Constructor Detail |
---|
public StopTrainingStrategy()
public StopTrainingStrategy(double minImprovement, int toleratedCycles)
minImprovement
- The minimum accepted improvement.toleratedCycles
- The number of cycles to tolerate before stopping.Method Detail |
---|
public void init(MLTrain train)
init
in interface Strategy
train
- The training algorithm.public void postIteration()
postIteration
in interface Strategy
public void preIteration()
preIteration
in interface Strategy
public boolean shouldStop()
shouldStop
in interface EndTrainingStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |