remove random_state condition
otherwise the random sample always draws the same set of points
This commit is contained in:
parent
dce9fdd0e4
commit
7142394121
@ -436,8 +436,7 @@ class Hyperopt:
|
|||||||
asked = unique_list(self.opt.ask(n_points=n_points * 5))
|
asked = unique_list(self.opt.ask(n_points=n_points * 5))
|
||||||
is_random = [False for _ in range(len(asked))]
|
is_random = [False for _ in range(len(asked))]
|
||||||
else:
|
else:
|
||||||
asked = unique_list(self.opt.space.rvs(
|
asked = unique_list(self.opt.space.rvs(n_samples=n_points * 5))
|
||||||
n_samples=n_points * 5, random_state=self.random_state + i))
|
|
||||||
is_random = [True for _ in range(len(asked))]
|
is_random = [True for _ in range(len(asked))]
|
||||||
is_random_non_tried += [rand for x, rand in zip(asked, is_random)
|
is_random_non_tried += [rand for x, rand in zip(asked, is_random)
|
||||||
if x not in self.opt.Xi
|
if x not in self.opt.Xi
|
||||||
|
Loading…
Reference in New Issue
Block a user