EarlyStoppingHook — mmengine 0.10.7 documentation (original) (raw)

class mmengine.hooks.EarlyStoppingHook(monitor, rule=None, min_delta=0.1, strict=False, check_finite=True, patience=5, stopping_threshold=None)[source]

Early stop the training when the monitored metric reached a plateau.

Parameters:

Note

New in version 0.7.0.

after_val_epoch(runner, metrics)[source]

Decide whether to stop the training process.

Parameters:

before_run(runner)[source]

Check stop_training variable in runner.train_loop.

Parameters:

runner (Runner) – The runner of the training process.

Return type:

None