|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ml.train.strategy.Greedy
public class Greedy
A simple greedy strategy. If the last iteration did not improve training, then discard it. Care must be taken with this strategy, as sometimes a training algorithm may need to temporarily decrease the error level before improving it.
Constructor Summary | |
---|---|
Greedy()
|
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 |
Constructor Detail |
---|
public Greedy()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |