Stopper
- class Stopper(*args, **kwargs)[source]
Bases:
ABC
A harness for stopping training.
Initialize the stopper.
- Parameters:
args – ignored positional parameters
kwargs – ignored keyword-based parameters
Methods Summary
Get a summary dict.
Load the summary dict from a training loop checkpoint.
should_evaluate
(epoch)Check if the stopper should be evaluated on the given epoch.
should_stop
(epoch)Validate on validation set and check for termination condition.
Methods Documentation
- static load_summary_dict_from_training_loop_checkpoint(path: str | Path) Mapping[str, Any] [source]
Load the summary dict from a training loop checkpoint.