microsoft / qlib

Qlib is an AI-oriented quantitative investment platform that aims to realize the potential, empower research, and create value using AI technologies in quantitative investment, from exploring ideas to implementing productions. Qlib supports diverse machine learning modeling paradigms. including supervised learning, market dynamics modeling, and RL.
https://qlib.readthedocs.io/en/latest/
MIT License
15.53k stars 2.64k forks source link

运行 examples/workflow_by_code.py 这个例子时有一些异常提示 #1646

Open moesakura opened 1 year ago

moesakura commented 1 year ago

❓ Questions and Help

qlib/utils/index_data.py:481: RuntimeWarning: Mean of empty slice
  return np.nanmean(self.data)
qlib/utils/index_data.py:481: RuntimeWarning: Mean of empty slice
  return np.nanmean(self.data)

会有几百条这样的异常提示

moesakura commented 1 year ago

python -m pdb qlib/workflow/cli.py examples/benchmarks/LightGBM/workflow_config_lightgbm_Alpha158.yaml 运行官方入门教程的这个例子也有相同的问题

quant2008 commented 1 year ago

你检查一下你的数据是不是正常

moesakura commented 1 year ago

你检查一下你的数据是不是正常

已经清空本地的数据 重新clone代码并运行 依旧报错

ghyzx commented 1 year ago

same issue on my computer

moesakura commented 11 months ago

请问一下大佬们有尝试查这个问题吗

moesakura commented 11 months ago

我查了一下 如果当天没有交易 计算ffr时 就会有这个warning 应该是不影响的 只是ternimal一直warning有点难受