Skip to content

Commit

Permalink
Import OptimzeResult from scipy.optimize to remove DeprecationWarning (
Browse files Browse the repository at this point in the history
…#1764)

Summary:
Getting rid of

> /botorch/botorch/generation/gen.py:34: DeprecationWarning: Please use `OptimizeResult` from the `scipy.optimize` namespace, the `scipy.optimize.optimize` namespace is deprecated.
>   from scipy.optimize.optimize import OptimizeResult

Pull Request resolved: #1764

Reviewed By: esantorella

Differential Revision: D44405681

Pulled By: Balandat

fbshipit-source-id: 727d47e6b2522f73a6b55c5e2b99f4932d209218
  • Loading branch information
Balandat authored and facebook-github-bot committed Mar 27, 2023
1 parent 91bc048 commit 3d3b600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion botorch/generation/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from botorch.optim.stopping import ExpMAStoppingCriterion
from botorch.optim.utils import _filter_kwargs, columnwise_clamp, fix_features
from botorch.optim.utils.timeout import minimize_with_timeout
from scipy.optimize.optimize import OptimizeResult
from scipy.optimize import OptimizeResult
from torch import Tensor
from torch.optim import Optimizer

Expand Down

0 comments on commit 3d3b600

Please sign in to comment.