Skip to content

Commit

Permalink
Support constant_liar in multi-objective TPESampler
Browse files Browse the repository at this point in the history
  • Loading branch information
nabenabe0928 committed Oct 11, 2023
1 parent 9627136 commit d7772ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optuna/samplers/_tpe/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def _get_internal_repr(
def _sample(
self, study: Study, trial: FrozenTrial, search_space: Dict[str, BaseDistribution]
) -> Dict[str, Any]:
if self._constant_liar and not study._is_multi_objective():
if self._constant_liar:
states = [TrialState.COMPLETE, TrialState.PRUNED, TrialState.RUNNING]
else:
states = [TrialState.COMPLETE, TrialState.PRUNED]
Expand Down

0 comments on commit d7772ca

Please sign in to comment.