« Back to top page

Patient Pruner

Pruner which wraps another pruner with tolerance.

Class or Function Names

  • PatientPruner

Example

study = optuna.create_study(
    direction="maximize",
    pruner=optuna.pruners.PatientPruner(optuna.pruners.MedianPruner(), patience=1),
)
study.optimize(objective, n_trials=20)

See example.py for a full example.

Others

See the documentation for more details.

Package
pruners/patient
Author
Optuna team
License
MIT License
Verified Optuna version
  • 3.6.1
Last update
2024-07-22