public class MaxEpochsTerminationCondition extends Object implements EpochTerminationCondition
| Constructor and Description |
|---|
MaxEpochsTerminationCondition(int maxEpochs) |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize()
Initialize the epoch termination condition (often a no-op)
|
boolean |
terminate(int epochNum,
double score,
boolean minimize)
Should the early stopping training terminate at this epoch, based on the calculated score and the epoch number?
Returns true if training should terminated, or false otherwise
|
String |
toString() |
public MaxEpochsTerminationCondition(int maxEpochs)
public void initialize()
EpochTerminationConditioninitialize in interface EpochTerminationConditionpublic boolean terminate(int epochNum,
double score,
boolean minimize)
EpochTerminationConditionterminate in interface EpochTerminationConditionepochNum - Number of the last completed epoch (starting at 0)score - Score calculate for this epochCopyright © 2021. All rights reserved.