Class MaxScoreIterationTerminationCondition
- java.lang.Object
-
- org.deeplearning4j.earlystopping.termination.MaxScoreIterationTerminationCondition
-
- All Implemented Interfaces:
Serializable
,IterationTerminationCondition
public class MaxScoreIterationTerminationCondition extends Object implements IterationTerminationCondition
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MaxScoreIterationTerminationCondition(double maxScore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 otherwiseString
toString()
-
-
-
Method Detail
-
initialize
public void initialize()
Description copied from interface:IterationTerminationCondition
Initialize the iteration termination condition (sometimes a no-op)- Specified by:
initialize
in interfaceIterationTerminationCondition
-
terminate
public boolean terminate(double lastMiniBatchScore)
Description copied from interface:IterationTerminationCondition
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- Specified by:
terminate
in interfaceIterationTerminationCondition
- Parameters:
lastMiniBatchScore
- Score of the last minibatch- Returns:
- whether to terminate or not
-
-