org.encog.ml.train.strategy.end
Class EndMinutesStrategy

java.lang.Object
  extended by org.encog.ml.train.strategy.end.EndMinutesStrategy
All Implemented Interfaces:
EndTrainingStrategy, Strategy

public class EndMinutesStrategy
extends Object
implements EndTrainingStrategy


Constructor Summary
EndMinutesStrategy(int minutes)
           
 
Method Summary
 int getMinutes()
           
 int getMinutesLeft()
           
 void init(MLTrain train)
          Initialize this strategy.
 void postIteration()
          Called just after a training iteration.
 void preIteration()
          Called just before a training iteration.
 boolean shouldStop()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndMinutesStrategy

public EndMinutesStrategy(int minutes)
Method Detail

shouldStop

public boolean shouldStop()

Specified by:
shouldStop in interface EndTrainingStrategy
Returns:
True if training should stop.

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

getMinutesLeft

public int getMinutesLeft()
Returns:
the minutesLeft

getMinutes

public int getMinutes()
Returns:
the minutes


Copyright © 2014. All Rights Reserved.