From ce11216f074ce3b90f60efedeebbfd2f69a7dd48 Mon Sep 17 00:00:00 2001 From: Max Balandat Date: Mon, 22 Apr 2019 15:56:14 -0700 Subject: [PATCH] Filter options in scipy minimize to avoid passing in the method as an option Gets rid of the `OptimizeWarnings` issued in newer scipy versions if an unknown option is passed in --- botorch/gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/botorch/gen.py b/botorch/gen.py index a2959cdf84..c114a39848 100644 --- a/botorch/gen.py +++ b/botorch/gen.py @@ -98,7 +98,7 @@ def f(x): jac=True, bounds=bounds, constraints=constraints, - options=options, + options={k: v for k, v in options.items() if k != "method"}, ) candidates = fix_features( X=torch.from_numpy(res.x) # pyre-ignore [16]