-
Hi all, I run VS Code on various machines, Work- windows 10 pc, home-Mac. I have been using and really appreciating the newer skopt functionality with the optimize function. However, recently I came across an issue which I believe is operator error, but I can't get to the bottom of it. I didn't want to post it as an issue because I don't think it is a problem with the library. Folder Structure: The main.ipynb has the following
Everything works fine here. Then I run the following two cells
and
and I get the following error.
However, in looking at my
I blame this on me or my VS Code settings because when I run virtually the exact same code and folder structure in a .py file everything works fine, when I run it on my Mac at home, it works fine in both .ipynb as well as .py and when I create a brand new project in VS Code and build something that I think is perfectly identical on the PC, it works fine. Also, I know that it is importing the strategy class paramaters because when I run:
which I am assuming implies that it has the necessary parameters. I have seen things on the web that suggest VS Code and Jupyter extension can be tricky when it comes to folder structure, and packages and module imports, but the error message is what made me want to post the question here.
what is the parameter 'method' referring to? BTW, everything was working fine for optimizations in this project on this PC a week or so ago. My thinking is that somehow my Mac at home has a VS code settings file that accidentally was included in my github repo when I pulled changes to the windows machine. Any help would be appreciated. Python Version 3.8 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
pip install -U backtesting |
Beta Was this translation helpful? Give feedback.
method='skopt'
is interpreted as**kwargs
strategy parameters. You're likely not really using Backtesting 0.3.0. Traceback snippets confirm it.