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 10, 2024
1 parent a46a02e commit 1de364d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions package/samplers/hebo/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,9 @@ def _sample_relative_stateless(

seed = self._rng.randint((1 << 31) - 1)
hebo = HEBO(self._convert_to_hebo_design_space(search_space), scramble_seed=seed)
valid_trials = [
params = pd.DataFrame([
t.params for t in trials if all(name in trial.params for name in search_space)
]
params = pd.DataFrame([t.params for t in valid_trials])
])
values = np.array(
[
sign * t.value if t.state == TrialState.COMPLETE else worst_value
Expand Down

0 comments on commit 1de364d

Please sign in to comment.