Skip to content

Commit

Permalink
Add rng in NelderMeadSampler argment.
Browse files Browse the repository at this point in the history
  • Loading branch information
KanaiYuma-aist committed Apr 1, 2024
1 parent 29d5294 commit 008f601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiaccel/hpo/samplers/nelder_mead_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def __init__(
parallel_enabled: bool = False,
) -> None:
self._search_space = search_space
_rng = rng if rng is not None else np.random.RandomState(seed) if seed is not None else np.random.RandomState()
_rng = rng if rng is not None else np.random.RandomState(seed) if seed is not None else None

self.nm = NelderMeadAlgorism(
search_space=self._search_space,
Expand Down

0 comments on commit 008f601

Please sign in to comment.