AI选股策略选择场内基金CN_FUND自动标注模块报错
由bqz7xwds创建,最终由bqz7xwds 被浏览 29 用户
问题
自动标准任意数据源报错如下:
HDF5ExtError Traceback (most recent call last)
HDF5ExtError: HDF5 error back trace
File "H5F.c", line 509, in H5Fopen unable to open file File "H5Fint.c", line 1400, in H5F__open unable to open file File "H5Fint.c", line 1700, in H5F_open unable to read superblock File "H5Fsuper.c", line 411, in H5F__super_read file signature not found
End of HDF5 error back trace
Unable to open/create file '/var/app/data/bigquant/datasource/user/v3/c/f0/cf0f88dfb4b54af5b2e26f0066aedc93T'
During handling of the above exception, another exception occurred:
Exception Traceback (most recent call last) <ipython-input-3-448d693a2eea> in <module> 11 ) 12 ---> 13 m5 = M.auto_labeler_on_datasource.v1( 14 input_data=m1.data, 15 label_expr="""# #号开始的表示注释
Exception: 缓存文件异常 cf0f88dfb4b54af5b2e26f0066aedc93T , 请取消当前模块缓存/重新写入数据后重试!
自动标注股票报错如下:
KeyError Traceback (most recent call last) <ipython-input-5-9c637937fc66> in <module> 72 ) 73 ---> 74 m2 = M.advanced_auto_labeler.v2( 75 instruments=m1.data, 76 label_expr="""# #号开始的表示注释
KeyError: 'instrument'
难到AI选股策略不适用场内基金CN_FUND?该如果调整呢?
解答
您这边需要把传入自动标注模块数据的行名字统一为 date,instrument。附一个demo作为参考:
https://bigquant.com/experimentshare/b8b85362202d404fb5130499f8635b01
\