org.encog.neural.networks.training.strategy
Class SmartMomentum
- java.lang.Object
-
- org.encog.neural.networks.training.strategy.SmartMomentum
-
-
Field Summary
Fields Modifier and Type Field and Description static doubleMAX_MOMENTUMThe maximum value that momentum can go to.static doubleMIN_IMPROVEMENTThe minimum improvement to adjust momentum.static doubleMOMENTUM_CYCLESHow many cycles to accept before adjusting momentum.static doubleMOMENTUM_INCREASEHow much to increase momentum by.static doubleSTART_MOMENTUMThe starting momentum.
-
Constructor Summary
Constructors Constructor and Description SmartMomentum()
-
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.
-
-
-
Field Detail
-
MIN_IMPROVEMENT
public static final double MIN_IMPROVEMENT
The minimum improvement to adjust momentum.- See Also:
- Constant Field Values
-
MAX_MOMENTUM
public static final double MAX_MOMENTUM
The maximum value that momentum can go to.- See Also:
- Constant Field Values
-
START_MOMENTUM
public static final double START_MOMENTUM
The starting momentum.- See Also:
- Constant Field Values
-
MOMENTUM_INCREASE
public static final double MOMENTUM_INCREASE
How much to increase momentum by.- See Also:
- Constant Field Values
-
MOMENTUM_CYCLES
public static final double MOMENTUM_CYCLES
How many cycles to accept before adjusting momentum.- See Also:
- Constant Field Values
-
-
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