optuna.terminator

terminator モジュールは、最適化プロセスを自動的に終了させる仕組みを実装しています。終了時のコールバッククラスと、最適化の推定改善余地や目的関数の統計的誤差を評価するクラスが含まれています。推定改善余地が統計的誤差を下回った場合、最適化プロセスは停止します。

BaseTerminator

Base class for terminators.

Terminator

Automatic stopping mechanism for Optuna studies.

BaseImprovementEvaluator

Base class for improvement evaluators.

RegretBoundEvaluator

An error evaluator for upper bound on the regret with high-probability confidence.

BestValueStagnationEvaluator

Evaluates the stagnation period of the best value in an optimization process.

EMMREvaluator

Evaluates a kind of regrets, called the Expected Minimum Model Regret(EMMR).

BaseErrorEvaluator

Base class for error evaluators.

CrossValidationErrorEvaluator

An error evaluator for objective functions based on cross-validation.

StaticErrorEvaluator

An error evaluator that always returns a constant value.

MedianErrorEvaluator

An error evaluator that returns the ratio to initial median.

TerminatorCallback

A callback that terminates the optimization using Terminator.

report_cross_validation_scores

A function to report cross-validation scores of a trial.

このモジュールの使用例については、こちらの例 を参照してください。