Skip to content

Commit

Permalink
Update package/samplers/hebo_base_sampler/sampler.py
Browse files Browse the repository at this point in the history
Co-authored-by: Shuhei Watanabe <[email protected]>
  • Loading branch information
eukaryo and nabenabe0928 authored Dec 4, 2024
1 parent 11f1cff commit 1f28f09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/samplers/hebo_base_sampler/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def _convert_to_hebo_design_space(
return DesignSpace().parse(design_space)

def infer_relative_search_space(self, study, trial): # type: ignore
return optuna.search_space.intersection_search_space(study.get_trials(deepcopy=False))
return optuna.search_space.intersection_search_space(study._get_trials(deepcopy=False, use_cache=True))


def sample_independent(self, study, trial, param_name, param_distribution): # type: ignore
return self._independent_sampler.sample_independent(
Expand Down

0 comments on commit 1f28f09

Please sign in to comment.