You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: User could run cd scripts && python collect_info.py all under project directory to get system information
and paste them here directly.
Qlib version: 0.9.6
Python version:3.10
OS (Windows):
Additional Notes
after i change the code from workflow/record_temp.py function _generate
def_generate(self, **kwargs):
pred=self.load("pred.pkl")
# replace the "<PRED>" with prediction saved beforeplaceholder_value= {"<PRED>": pred}
forkin"executor_config", "strategy_config":
setattr(self, k, fill_placeholder(getattr(self, k), placeholder_value))
# if the backtesting time range is not set, it will automatically extract time range from the prediction filedt_values=pred.index.get_level_values("datetime")
ifself.backtest_config["start_time"] isNone:
self.backtest_config["start_time"] =dt_values.min()
ifself.backtest_config["end_time"] isNone:
self.backtest_config["end_time"] =get_date_by_shift(dt_values.max(), 1)
......
to
def_generate(self, **kwargs):
pred=self.load("pred.pkl")
# replace the "<PRED>" with prediction saved beforeplaceholder_value= {"<PRED>": pred}
forkin"executor_config", "strategy_config":
setattr(self, k, fill_placeholder(getattr(self, k), placeholder_value))
# if the backtesting time range is not set, it will automatically extract time range from the prediction filedatetime_level=pred.index.names.index("datetime")
dt_values=pred.index.get_level_values(datetime_level)
ifself.backtest_config["start_time"] isNone:
self.backtest_config["start_time"] =dt_values.min()
ifself.backtest_config["end_time"] isNone:
self.backtest_config["end_time"] =get_date_by_shift(dt_values.max(), 1)
....
the error disapper
The text was updated successfully, but these errors were encountered:
🐛 Bug Description
when change example config to alpha360, datetime occurs multiple times error occurs. i debug to recognize may be record_temp.py can fix to solve
To Reproduce
Steps to reproduce the behavior:
1.change the data handler to use alpha360
Expected Behavior
no error
Screenshot
Environment
Note: User could run
cd scripts && python collect_info.py all
under project directory to get system informationand paste them here directly.
Windows
):Additional Notes
after i change the code from workflow/record_temp.py function _generate
to
the error disapper
The text was updated successfully, but these errors were encountered: