Some checks failed
Code Quality Main / code-quality (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
Tests / run_tests_ubuntu (ubuntu-latest, 3.10) (push) Has been cancelled
Tests / run_tests_ubuntu (ubuntu-latest, 3.8) (push) Has been cancelled
Tests / run_tests_ubuntu (ubuntu-latest, 3.9) (push) Has been cancelled
Tests / run_tests_macos (macos-latest, 3.10) (push) Has been cancelled
Tests / run_tests_macos (macos-latest, 3.8) (push) Has been cancelled
Tests / run_tests_macos (macos-latest, 3.9) (push) Has been cancelled
Tests / run_tests_windows (windows-latest, 3.10) (push) Has been cancelled
Tests / run_tests_windows (windows-latest, 3.8) (push) Has been cancelled
Tests / run_tests_windows (windows-latest, 3.9) (push) Has been cancelled
Tests / code-coverage (push) Has been cancelled
16 lines
1.1 KiB
YAML
16 lines
1.1 KiB
YAML
# https://lightning.ai/docs/pytorch/stable/api/lightning.pytorch.callbacks.EarlyStopping.html
|
|
|
|
early_stopping:
|
|
_target_: lightning.pytorch.callbacks.EarlyStopping
|
|
monitor: ??? # quantity to be monitored, must be specified !!!
|
|
min_delta: 0. # minimum change in the monitored quantity to qualify as an improvement
|
|
patience: 3 # number of checks with no improvement after which training will be stopped
|
|
verbose: False # verbosity mode
|
|
mode: "min" # "max" means higher metric value is better, can be also "min"
|
|
strict: True # whether to crash the training if monitor is not found in the validation metrics
|
|
check_finite: True # when set True, stops training when the monitor becomes NaN or infinite
|
|
stopping_threshold: null # stop training immediately once the monitored quantity reaches this threshold
|
|
divergence_threshold: null # stop training as soon as the monitored quantity becomes worse than this threshold
|
|
check_on_train_epoch_end: null # whether to run early stopping at the end of the training epoch
|
|
# log_rank_zero_only: False # this keyword argument isn't available in stable version
|