Skip to content

Commit

Permalink
Setting the random state of config_space (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgouneau authored Dec 13, 2021
1 parent d11b2f0 commit 50117e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions skopt/optimizer/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ def __init__(
if type(dimensions) is CS.ConfigurationSpace:
# Save the config space to do a real copy of the Optimizer
self.config_space = dimensions
self.config_space.seed(self.rng.get_state()[1][0])

if isinstance(self.base_estimator_, GaussianProcessRegressor):
raise RuntimeError("GP estimator is not available with ConfigSpace!")
Expand Down

0 comments on commit 50117e6

Please sign in to comment.