org.encog.ml.train.strategy.end
Class EndMinutesStrategy
- java.lang.Object
-
- org.encog.ml.train.strategy.end.EndMinutesStrategy
-
- All Implemented Interfaces:
- EndTrainingStrategy, Strategy
public class EndMinutesStrategy extends java.lang.Object implements EndTrainingStrategy
-
-
Constructor Summary
Constructors Constructor and Description EndMinutesStrategy(int minutes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetMinutes()intgetMinutesLeft()voidinit(MLTrain train)Initialize this strategy.voidpostIteration()Called just after a training iteration.voidpreIteration()Called just before a training iteration.booleanshouldStop()
-
-
-
Method Detail
-
shouldStop
public boolean shouldStop()
- Specified by:
shouldStopin interfaceEndTrainingStrategy- Returns:
- True if training should stop.
-
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
-
getMinutesLeft
public int getMinutesLeft()
- Returns:
- the minutesLeft
-
getMinutes
public int getMinutes()
- Returns:
- the minutes
-
-
DMelt 3.0 © DataMelt by jWork.ORG