Skip to content

Commit 2b3fe69

Browse files
Balandatfacebook-github-bot
authored andcommitted
Filter options in scipy minimize to avoid passing in method as option (#75)
Summary: Gets rid of the `OptimizeWarnings` issued in newer scipy versions if an unknown option is passed in. Pull Request resolved: #75 Reviewed By: danielrjiang Differential Revision: D15039022 Pulled By: Balandat fbshipit-source-id: a1a74f8607b306a5f8018ea27968ff6f71a78997
1 parent 6a22155 commit 2b3fe69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

botorch/gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def f(x):
9898
jac=True,
9999
bounds=bounds,
100100
constraints=constraints,
101-
options=options,
101+
options={k: v for k, v in options.items() if k != "method"},
102102
)
103103
candidates = fix_features(
104104
X=torch.from_numpy(res.x) # pyre-ignore [16]

0 commit comments

Comments
 (0)