Skip to content

Commit

Permalink
Address mizuno's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nabenabe0928 committed Oct 24, 2024
1 parent 72d661f commit f509620
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package/samplers/auto_sampler/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ def _determine_multi_objective_sampler(
# Use NSGA-II/III if len(complete_trials) <= _N_COMPLETE_TRIALS_FOR_NSGA.
return nsga_sampler_cls(constraints_func=self._constraints_func, seed=seed)

return self._sampler
return self._sampler # No update happens to self._sampler.

def _determine_single_objective_sampler(
self, study: Study, trial: FrozenTrial, search_space: dict[str, BaseDistribution]
) -> BaseSampler | None:
) -> BaseSampler:
if isinstance(self._sampler, TPESampler):
return self._sampler

Expand Down Expand Up @@ -168,7 +168,7 @@ def _determine_single_objective_sampler(
seed=seed, source_trials=warm_start_trials, warn_independent_sampling=False
)

return self._sampler
return self._sampler # No update happens to self._sampler.

def _determine_sampler(
self, study: Study, trial: FrozenTrial, search_space: dict[str, BaseDistribution]
Expand Down

0 comments on commit f509620

Please sign in to comment.