optuna.pruners

pruners モジュールは、BasePruner クラスを定義しています。このクラスは抽象メソッド prune() を持ち、与えられたトライアルとそのスタディに対して、トライアルを剪定すべきかどうかを示す真偽値を返します。この判定は、トライアルの optuna.trial.Trial.report() メソッドで報告された目的関数の中間値に基づいて行われます。このモジュールの他のクラスは、BasePruner を継承したサブクラスで、それぞれ異なる剪定戦略を実装しています。

Warning

現在、pruners モジュールは単一目的最適化にのみ対応しています。

See also

効率的な最適化アルゴリズム チュートリアルでは、剪定クラスの概念と最小限の使用例を説明しています。

See also

ユーザー定義プルーナー チュートリアルは、独自の剪定クラスを実装したい場合に参考になります。

BasePruner

Base class for pruners.

MedianPruner

Pruner using the median stopping rule.

NopPruner

Pruner which never prunes trials.

PatientPruner

Pruner which wraps another pruner with tolerance.

PercentilePruner

Pruner to keep the specified percentile of the trials.

SuccessiveHalvingPruner

Pruner using Asynchronous Successive Halving Algorithm.

HyperbandPruner

Pruner using Hyperband.

ThresholdPruner

Pruner to detect outlying metrics of the trials.

WilcoxonPruner

Pruner based on the Wilcoxon signed-rank test.