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 in example doc with scikit-optimize #838
Comments
Hi there, I am following the tutorial at https://kernc.github.io/backtesting.py/doc/examples/Parameter%20Heatmap%20&%20Optimization.html and I run into the same problem. Here are the details: Throws on the following code:
With the following deps on Python 3.11:
With the following error:
When I upgrade the numpy version to 1.24.0:
I see the following error:
Please help! Thanks in advance. |
Full Python 3.11 stacktrace is here https://pastebin.com/4865192r Please let me know if you need any other info. |
This appears to be a problem in scikit-optimize. Hence scikit-learn here d5db8be See scikit-optimize/scikit-optimize#1123 which fixes the bug and scikit-optimize/scikit-optimize#1138 |
Hi @sshquack , apologies mate, I am getting this error in one of my remote servers... Can I check how this error is actually fixed? Is there any particular version of numpy, or scikit-learn, or scikit-optimize we need to install/upgrade/downgrade to? I read this thread [( https://github.com/scikit-optimize/scikit-optimize/pull/1123)], but I am still not sure where/how the fix is.. |
@kernc I saw you put in a pr for the skopt but it seems they have gone dormant over there. Is there any anticipated fix for this? Perhaps something we can do based on your pr? Or can we possibly downgrade numpy to a lower version? |
The example doc "Parameter Heatmap", section "Model-based optimization". https://kernc.github.io/backtesting.py/doc/examples/Parameter%20Heatmap%20&%20Optimization.html
When I run this snippet I get an error.
bokeh.__version__
: Python 3.11, bokeh 2.4.3; Python 3.8.11, bokeh 3.0.3;The text was updated successfully, but these errors were encountered: