remove random_state condition

otherwise the random sample always draws the same set of points
This commit is contained in:
Italo 2022-06-10 09:46:45 +01:00
parent dce9fdd0e4
commit 7142394121
1 changed files with 1 additions and 2 deletions

View File

@ -436,8 +436,7 @@ class Hyperopt:
asked = unique_list(self.opt.ask(n_points=n_points * 5))
is_random = [False for _ in range(len(asked))]
else:
asked = unique_list(self.opt.space.rvs(
n_samples=n_points * 5, random_state=self.random_state + i))
asked = unique_list(self.opt.space.rvs(n_samples=n_points * 5))
is_random = [True for _ in range(len(asked))]
is_random_non_tried += [rand for x, rand in zip(asked, is_random)
if x not in self.opt.Xi