public static class EarlyStoppingConfiguration.Builder<T extends Model>
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EarlyStoppingConfiguration<T> |
build()
Create the early stopping configuration
|
EarlyStoppingConfiguration.Builder<T> |
epochTerminationConditions(EpochTerminationCondition... terminationConditions)
Termination conditions to be evaluated every N epochs, with N set by evaluateEveryNEpochs option
|
EarlyStoppingConfiguration.Builder<T> |
epochTerminationConditions(java.util.List<EpochTerminationCondition> terminationConditions)
Termination conditions to be evaluated every N epochs, with N set by evaluateEveryNEpochs option
|
EarlyStoppingConfiguration.Builder<T> |
evaluateEveryNEpochs(int everyNEpochs)
How frequently should evaluations be conducted (in terms of epochs)? Defaults to every (1) epochs.
|
EarlyStoppingConfiguration.Builder<T> |
iterationTerminationConditions(IterationTerminationCondition... terminationConditions)
Termination conditions to be evaluated every iteration (minibatch)
|
EarlyStoppingConfiguration.Builder<T> |
modelSaver(EarlyStoppingModelSaver<T> modelSaver)
How should models be saved? (Default: in memory)
|
EarlyStoppingConfiguration.Builder<T> |
saveLastModel(boolean saveLastModel)
Save the last model? If true: save the most recent model at each epoch, in addition to the best
model (whenever the best model improves).
|
EarlyStoppingConfiguration.Builder<T> |
scoreCalculator(ScoreCalculator<T> scoreCalculator)
Score calculator.
|
public EarlyStoppingConfiguration.Builder<T> modelSaver(EarlyStoppingModelSaver<T> modelSaver)
public EarlyStoppingConfiguration.Builder<T> epochTerminationConditions(EpochTerminationCondition... terminationConditions)
public EarlyStoppingConfiguration.Builder<T> epochTerminationConditions(java.util.List<EpochTerminationCondition> terminationConditions)
public EarlyStoppingConfiguration.Builder<T> iterationTerminationConditions(IterationTerminationCondition... terminationConditions)
public EarlyStoppingConfiguration.Builder<T> saveLastModel(boolean saveLastModel)
public EarlyStoppingConfiguration.Builder<T> evaluateEveryNEpochs(int everyNEpochs)
public EarlyStoppingConfiguration.Builder<T> scoreCalculator(ScoreCalculator<T> scoreCalculator)
evaluateEveryNEpochs
public EarlyStoppingConfiguration<T> build()