问答交流

求解错误

由minezgc创建,最终由minezgc 被浏览 18 用户

问题

[2022-06-28 17:10:39.972736] ERROR: moduleinvoker: module name: backtest, module version: v8, trackeback: AttributeError: 'TradingAlgorithm' object has no attribute 'ranker_prediction' [2022-06-28 17:10:39.980771] ERROR: moduleinvoker: module name: trade, module version: v4, trackeback: AttributeError: 'TradingAlgorithm' object has no attribute 'ranker_prediction'

https://bigquant.com/experimentshare/cc6cd7eaa68144358e48904dd21a50e6

解答

https://bigquant.com/experimentshare/3c4df3eba42d47af90e2af4422187901

在初始化函数里定义ranker_prediction即可

标签

AttributeError
评论
  • [https://bigquant.com/experimentshare/3c4df3eba42d47af90e2af4422187901](https://bigquant.com/experimentshare/3c4df3eba42d47af90e2af4422187901) 在初始化函数里定义ranker_prediction即可
{link}