public class MaxTimeIterationTerminationCondition extends java.lang.Object implements IterationTerminationCondition
Constructor and Description |
---|
MaxTimeIterationTerminationCondition(long maxTimeAmount,
java.util.concurrent.TimeUnit maxTimeUnit) |
Modifier and Type | Method and Description |
---|---|
void |
initialize()
Initialize the iteration termination condition (sometimes a no-op)
|
boolean |
terminate(double lastMiniBatchScore)
Should early stopping training terminate at this iteration, based on the score for the last iteration?
return true if training should be terminated immediately, or false otherwise
|
java.lang.String |
toString() |
public MaxTimeIterationTerminationCondition(long maxTimeAmount, java.util.concurrent.TimeUnit maxTimeUnit)
public void initialize()
IterationTerminationCondition
initialize
in interface IterationTerminationCondition
public boolean terminate(double lastMiniBatchScore)
IterationTerminationCondition
terminate
in interface IterationTerminationCondition
lastMiniBatchScore
- Score of the last minibatchpublic java.lang.String toString()
toString
in class java.lang.Object