pg.early_stopping.StepWise#
Accessible via pg.early_stopping.StepWise
.
- class StepWise(plan)[source]#
Bases:
pg.early_stopping.EarlyStopingPolicyBase
Step-wise early stopping policy.
Methods:
recover
(history)Recovers the policy state based on history.
should_stop_early
(trial)Returns True if a trial should be stopped early.