org.encog.ml.train.strategy
Class Greedy
- java.lang.Object
-
- org.encog.ml.train.strategy.Greedy
-
- All Implemented Interfaces:
- Strategy
public class Greedy extends java.lang.Object implements Strategy
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
Constructors Constructor and Description Greedy()
-
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.
-
-
-
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