Skip to content

Commit

Permalink
constant liar now works for moo
Browse files Browse the repository at this point in the history
  • Loading branch information
Deathn0t committed Mar 26, 2024
1 parent b80b541 commit 8b3ecbc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deephyper/skopt/optimizer/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,10 @@ def ask(self, n_points=None, strategy="cl_min", strategy_kwargs=None):
y_lie = np.max(opt_yi, axis=0) if opt_yi else 0.0 # CL-max lie
t_lie = np.max(ti) if ti is not None else log(sys.float_info.max)

# Converts both numpy scalar or arrays, it is necessary to avoid y_lie
# being an array triggering an issue in _tell
y_lie = y_lie.tolist()

# Lie to the optimizer.
if "ps" in self.acq_func:
# Use `_tell()` instead of `tell()` to prevent repeated
Expand Down

0 comments on commit 8b3ecbc

Please sign in to comment.