Unify the behavior of the terminator and its visualization function #5073
Labels
contribution-welcome
Issue that welcomes contribution.
feature
Change that does not break compatibility, but affects the public interfaces.
Motivation
We are developing
optuna.terminator
as an automatic termination module, and have preparedoptuna.visualization.plot_terminator_improvement
for its visualization. However, there are inconsistencies in their behavior, and I propose that we align them.Description
The
optuna.terminator.Terminator
class is initialized withimprovement_evaluator
,error_evaluator
, andmin_n_trials
. Ifimprovement_evaluator
is an instance ofBestValueStagnationEvaluator
anderror_evaluator
isNone
,error_evaluator
is initialized withStaticErrorEvaluator(constant=0)
(ref).plot_terminator_improvement
is not set up like this. The latter should be made to match the former.Alternatives (optional)
No response
Additional context (optional)
No response
The text was updated successfully, but these errors were encountered: