Skip to content

Commit

Permalink
Update package/samplers/hebo/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 8, 2024
1 parent a82754e commit 4e1a019
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/samplers/hebo/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ def _sample_relative_stateless(
else:
target_states = [TrialState.COMPLETE]

trials = study.get_trials(deepcopy=False, states=target_states)
use_cache = not self._constant_liar
trials = study._get_trials(deepcopy=False, states=states, use_cache=use_cache)
if len([t for t in trials if t.state == TrialState.COMPLETE]) < 1:
# note: The backend HEBO implementation uses Sobol sampling here.
# This sampler does not call `hebo.suggest()` here because
Expand Down

0 comments on commit 4e1a019

Please sign in to comment.