optuna.pruners
pruners
モジュールは、BasePruner
クラスを定義しています。このクラスは抽象メソッド prune()
を持ち、与えられたトライアルとそのスタディに対して、トライアルを剪定すべきかどうかを示す真偽値を返します。この判定は、トライアルの optuna.trial.Trial.report()
メソッドで報告された目的関数の中間値に基づいて行われます。このモジュールの他のクラスは、BasePruner
を継承したサブクラスで、それぞれ異なる剪定戦略を実装しています。
Warning
現在、pruners
モジュールは単一目的最適化にのみ対応しています。
See also
効率的な最適化アルゴリズム チュートリアルでは、剪定クラスの概念と最小限の使用例を説明しています。
See also
ユーザー定義プルーナー チュートリアルは、独自の剪定クラスを実装したい場合に参考になります。
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. |