optuna.pruners
The pruners module defines a BasePruner class characterized by an abstract prune() method, which, for a given trial and its associated study, returns a boolean value representing whether the trial should be pruned. This determination is made based on stored intermediate values of the objective function, as previously reported for the trial using optuna.trial.Trial.report(). The remaining classes in this module represent child classes, inheriting from BasePruner, which implement different pruning strategies.
Warning
Currently pruners module is expected to be used only for single-objective optimization.
See also
Efficient Optimization Algorithms tutorial explains the concept of the pruner classes and a minimal example.
See also
User-Defined Pruner tutorial could be helpful if you want to implement your own pruner classes.
Base class for pruners. |
|
Pruner using the median stopping rule. |
|
Pruner which never prunes trials. |
|
Pruner which wraps another pruner with tolerance. |
|
Pruner to keep the specified percentile of the trials. |
|
Pruner using Asynchronous Successive Halving Algorithm. |
|
Pruner using Hyperband. |
|
Pruner to detect outlying metrics of the trials. |
|
Pruner based on the Wilcoxon signed-rank test. |