-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with scipy 1.8.0 #300
Comments
I have the same problem. I used pip install scipy==1.7 and it seems to work. |
Came here with the same issue. |
Same, |
…tion. (#46) * Refactored optimization API to take an opt_method arg. * Exposed kwargs to wrapped optimization methods to the batch optimizer. * Add wrapper for bayes_opt Bayesian optimization to optimization chassis. * Added bayesian-optimization as a build dependency. * Set scipy upper bound due to issue with bayesian-optimization (bayesian-optimization/BayesianOptimization#300). * Added Bayesian optimization verification to version testing. * Updated documentation to reflect support for BayesianOptimization. * Fixed a bug that only occurred when optimizing eps. * Added a test case that verifies that both array and kwarg versions of objective functions and their component parts agree.
Glad to see others have reproduced this issue, #319 should handle this in a version-explicit way. Thanks! |
hey all, just an update on this. pip install git+https://github.com/fmfn/BayesianOptimization |
@bwheelz36 Any update on this after over a month? For a package with 6.1k stars, getting this fix pushed to PyPI/conda would seem to be quite critical. |
Agreed, the problem is I don't actually have the rights to do that yet. I'll try to get in touch with Fernando again though, thanks for the reminder. |
Assuming I get the rights, I can handle the pypi release - does anyone want to volunteer to help with the conda release? I guess I could figure it out but I don't normally use conda... |
As far as I am concerned, this has NOT fixed, after I downgraded scipy version to 1.70 and installed "pip install git+https://github.com/fmfn/BayesianOptimization" I still got the same error, can anyone explain why? |
Should I only do ONE of the above, namely either downgrade Scipy OR install Master branch of the repo, not both? |
@xxl4tomxu98 - either should fix it. if you install scipy version 1.8, install from the master branch here (which will also work with scipy 1.7) import scipy
scipy.__version__ |
well, I do conda list and checked to see scipy is V1.7 |
My bayes_opt is also installed with conda |
@bwheelz36 I also have no experience maintaining conda packages, but I'm eager for this change to be available through conda. So if you think it'd actually be helpful, I'd be happy to lend a hand (basically just working off https://conda-forge.org/docs/maintainer/updating_pkgs.html#updating-recipes). Other people would obviously be better equipped, but let me know if you just need another person to help sort through the steps. |
@bwheelz36, I'm still getting this error - I tried installing with pip, conda, and github, tried scipy==1.7 and 1.8, each on both python 3.10 and python 3.7. I see this was closed but am curious if this fix was uploaded? In which environment does this work? Note I'm on Apple Silicon (M1 pro) SETUP:
ERROR:
|
Hi, yes the fix has been uploaded to pypi. |
I think that this is a different error, unrelated to this package. Either |
I am getting an error with scipy 1.8.0
The problem appears to be that in this new version of scipy, res.fun is returned as a number instead of an array.
I haven't yet found exactly where in scipy the change is. A fix may be as simple as adding an if statement to handle this case.
I'll keep looking into it but for now I suggest limiting scipy installations to 1.7 or less.
The text was updated successfully, but these errors were encountered: