Skip to content

Commit

Permalink
Fix scipy minimize deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed May 18, 2022
1 parent 1bd084a commit 8071912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maml/apps/bowsr/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def min_obj(x):
x0 = np.clip(x0, bounds[:, 0] + 3 * EPS, bounds[:, 1] - 3 * EPS)

res = minimize(min_obj, x0=x0, bounds=bounds, method="L-BFGS-B")
if -res.fun[0] >= acq_max:
if -float(res.fun) >= acq_max:
x_max = res.x
return _trunc(scaler.inverse_transform(x_max), decimals=3)

Expand Down

0 comments on commit 8071912

Please sign in to comment.