make robust in case all points have been tried
This commit is contained in:
parent
23f1a1904b
commit
f8a674f24d
@ -433,7 +433,10 @@ class Hyperopt:
|
||||
if x not in self.opt.Xi
|
||||
and x not in asked_non_tried]
|
||||
i += 1
|
||||
if asked_non_tried:
|
||||
return asked_non_tried[:n_points]
|
||||
else:
|
||||
return self.opt.ask(n_points=n_points)
|
||||
|
||||
def start(self) -> None:
|
||||
self.random_state = self._set_random_state(self.config.get('hyperopt_random_state', None))
|
||||
|
Loading…
Reference in New Issue
Block a user