intelligent-trading-bot
intelligent-trading-bot copied to clipboard
Predict rolling
PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
date_obj = stz.localize(date_obj)
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/root/intelligent-trading-bot/scripts/predict_rolling.py", line 281, in
I get the same error runnin the predictrolling. Any hints?
the issue is related to initial starting point being outside the main window. the default setting of "2017-08-01" will be set outside the main feature matrix range, which is set by default to 3 years back in time (3 * 525600). so the prediction start can be either set manually to something closer or one can implement dynamic padding to automatically follow the latest date