update is_random before asked_non_tried
is_random depends on asked_non_tried and needs to be updated first
This commit is contained in:
parent
4acb77305a
commit
340c0ea391
@ -438,10 +438,10 @@ class Hyperopt:
|
|||||||
else:
|
else:
|
||||||
asked = unique_list(self.opt.space.rvs(n_samples=n_points * 5))
|
asked = unique_list(self.opt.space.rvs(n_samples=n_points * 5))
|
||||||
is_random = [True for _ in range(len(asked))]
|
is_random = [True for _ in range(len(asked))]
|
||||||
asked_non_tried += [x for x in asked
|
is_random += [rand for x, rand in zip(asked, is_random)
|
||||||
if x not in self.opt.Xi
|
if x not in self.opt.Xi
|
||||||
and x not in asked_non_tried]
|
and x not in asked_non_tried]
|
||||||
is_random += [rand for x, rand in zip(asked, is_random)
|
asked_non_tried += [x for x in asked
|
||||||
if x not in self.opt.Xi
|
if x not in self.opt.Xi
|
||||||
and x not in asked_non_tried]
|
and x not in asked_non_tried]
|
||||||
i += 1
|
i += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user