org.encog.ml.train.strategy
Class RequiredImprovementStrategy
- java.lang.Object
-
- org.encog.ml.train.strategy.RequiredImprovementStrategy
-
-
Constructor Summary
Constructors Constructor and Description RequiredImprovementStrategy(double required, double threshold, int cycles)Construct a reset strategy.RequiredImprovementStrategy(double required, int cycles)Construct a reset strategy.RequiredImprovementStrategy(int cycles)Reset if there is not at least a 1% improvement for n cycles.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidinit(MLTrain train)Initialize this strategy.voidpostIteration()Called just after a training iteration.voidpreIteration()Called just before a training iteration.
-
-
-
Constructor Detail
-
RequiredImprovementStrategy
public RequiredImprovementStrategy(double required, int cycles)Construct a reset strategy. The error rate must fall below the required rate in the specified number of cycles, or the neural network will be reset to random weights and bias values.- Parameters:
required- The required error rate.cycles- The number of cycles to reach that rate.
-
RequiredImprovementStrategy
public RequiredImprovementStrategy(double required, double threshold, int cycles)Construct a reset strategy. The error rate must fall below the required rate in the specified number of cycles, or the neural network will be reset to random weights and bias values.- Parameters:
required- The required error rate.threshold- The accepted threshold, don't reset if error is below this.cycles- The number of cycles to reach that rate.
-
RequiredImprovementStrategy
public RequiredImprovementStrategy(int cycles)
Reset if there is not at least a 1% improvement for n cycles. Don't reset if below 10%.- Parameters:
cycles- The number of cycles.
-
-
Method Detail
-
init
public void init(MLTrain train)
Initialize this strategy.
-
postIteration
public void postIteration()
Called just after a training iteration.- Specified by:
postIterationin interfaceStrategy
-
preIteration
public void preIteration()
Called just before a training iteration.- Specified by:
preIterationin interfaceStrategy
-
-
DMelt 3.0 © DataMelt by jWork.ORG