feat(training): 新增财务数据因子并修复多表 join 冲突

- 添加 9 个财务数据因子(利润表/资产负债表/现金流量表)
- 修复多表 asof join 时 f_ann_date_right 列名重复错误
- 将 Top5 改为可配置的 TopN 参数
- 删除已弃用的 regression.py 脚本
This commit is contained in:
2026-03-08 11:46:30 +08:00
parent eb76cbbd52
commit 36e0e4b234
3 changed files with 334 additions and 747 deletions

View File

@@ -128,6 +128,10 @@ class FinancialLoader:
strategy="backward",
)
# 删除 f_ann_date_right 列(如果有),避免多次 asof join 时列名冲突
if "f_ann_date_right" in merged.columns:
merged = merged.drop("f_ann_date_right")
return merged
def _load_from_db(