The question about change the freq to 1min in .yaml file
❓ Questions and Help
你好,我想使用benchmark里的TRA模型跑一下cn_data_1min的分钟级别数据。我在data_handler_config中设置了freq为1min,结果运行的时候一直出现以下error:
File "/home/anaconda3/envs/Qlib/lib/python3.8/site-packages/pyqlib-0.8.6.99-py3.8-linux-x86_64.egg/qlib/data/data.py", line 90, in calendar
_calendar, _calendar_index = self._get_calendar(freq, future)
File "/home/anaconda3/envs/Qlib/lib/python3.8/site-packages/pyqlib-0.8.6.99-py3.8-linux-x86_64.egg/qlib/data/data.py", line 173, in _get_calendar
_calendar = np.array(self.load_calendar(freq, future))
File "/home/anaconda3/envs/Qlib/lib/python3.8/site-packages/pyqlib-0.8.6.99-py3.8-linux-x86_64.egg/qlib/data/data.py", line 672, in load_calendar
return [pd.Timestamp(x) for x in backend_obj]
File "/home/anaconda3/envs/Qlib/lib/python3.8/site-packages/pyqlib-0.8.6.99-py3.8-linux-x86_64.egg/qlib/data/data.py", line 672, in
我想请问一下如何修改yaml里的freq才能正确的跑cn_data_1min这个数据集?
We sincerely suggest you to carefully read the documentation of our library as well as the official paper. After that, if you still feel puzzled, please describe the question clearly under this issue.
I think it is caused by a BUG of Qlib. But it is fixed now. Please merge the main branch to try it.
Currently, Qlib only provides a very limited length of the range of 1min data. So I think it does not ensure good performance to transfer TRA model to it.
This issue is stale because it has been open for three months with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days