|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.neural.networks.training.strategy.SmartMomentum
public class SmartMomentum
Attempt to automatically set a momentum in a training algorithm that supports momentum.
| Field Summary | |
|---|---|
static double |
MAX_MOMENTUM
The maximum value that momentum can go to. |
static double |
MIN_IMPROVEMENT
The minimum improvement to adjust momentum. |
static double |
MOMENTUM_CYCLES
How many cycles to accept before adjusting momentum. |
static double |
MOMENTUM_INCREASE
How much to increase momentum by. |
static double |
START_MOMENTUM
The starting momentum. |
| Constructor Summary | |
|---|---|
SmartMomentum()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double MIN_IMPROVEMENT
public static final double MAX_MOMENTUM
public static final double START_MOMENTUM
public static final double MOMENTUM_INCREASE
public static final double MOMENTUM_CYCLES
| Constructor Detail |
|---|
public SmartMomentum()
| Method Detail |
|---|
public final void init(MLTrain train)
init in interface Strategytrain - The training algorithm.public final void postIteration()
postIteration in interface Strategypublic final void preIteration()
preIteration in interface Strategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||