org.encog.ml.train.strategy
Class Greedy

java.lang.Object
  extended by org.encog.ml.train.strategy.Greedy
All Implemented Interfaces:
Strategy

public class Greedy
extends 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.

Author:
jheaton

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

Greedy

public Greedy()
Method Detail

init

public void init(MLTrain train)
Initialize this strategy.

Specified by:
init in interface Strategy
Parameters:
train - The training algorithm.

postIteration

public void postIteration()
Called just after a training iteration.

Specified by:
postIteration in interface Strategy

preIteration

public void preIteration()
Called just before a training iteration.

Specified by:
preIteration in interface Strategy


Copyright © 2011. All Rights Reserved.