From a82754e2a448c9a972d12b90fdbc0910597a0b7f Mon Sep 17 00:00:00 2001 From: Hiroki Takizawa Date: Sun, 8 Dec 2024 17:30:07 +0900 Subject: [PATCH] Update package/samplers/hebo/sampler.py Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com> --- package/samplers/hebo/sampler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/samplers/hebo/sampler.py b/package/samplers/hebo/sampler.py index d23eece0..8e2e6ea6 100644 --- a/package/samplers/hebo/sampler.py +++ b/package/samplers/hebo/sampler.py @@ -121,7 +121,8 @@ def _sample_relative_stateless( worst_value = min(t.value for t in trials if t.state == TrialState.COMPLETE) sign = 1 if study.direction == StudyDirection.MINIMIZE else -1 - hebo = HEBO(self._convert_to_hebo_design_space(search_space), scramble_seed=self._seed) + seed = self._rng.randint((1 << 31) - 1) + hebo = HEBO(self._convert_to_hebo_design_space(search_space), scramble_seed=seed) for t in trials: if t.state == TrialState.COMPLETE: hebo_params = {name: t.params[name] for name in search_space.keys()}