API Reference

EarlyStopping

class monad.config.early_stopping.EarlyStopping

Defines early stopping callback for the training.

from monad.config.early_stopping import EarlyStopping

EarlyStopping(min_delta=0.0001, patience=3, verbose=True)
Parameters

min_delta: float
Default: 0.0
Minimum change in the monitored quantity to qualify as an improvement, i.e. an absolute change of less than or equal to min_delta, will count as no improvement. Should be greater than 0.


patience: int
Default: 3
Number of checks with no improvement after which training will be stopped. Relates to the checks performed comparing subsequent validation epoch metrics. Should be greater than 1.


verbose:bool
_Default: False
Whether to log information about registered improvement or lack of it.