Skip to content

Commit 8071912

Browse files
committed
Fix scipy minimize deprecation
1 parent 1bd084a commit 8071912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maml/apps/bowsr/acquisition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def min_obj(x):
127127
x0 = np.clip(x0, bounds[:, 0] + 3 * EPS, bounds[:, 1] - 3 * EPS)
128128

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

0 commit comments

Comments
 (0)