fix: build_reason weights 参数设为可选

This commit is contained in:
lookt
2026-09-16 14:34:45 +08:00
parent 42e1e68e26
commit 80d865de89
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import numpy as np
import pandas as pd
def build_reason(code, kline_df, weights):
def build_reason(code, kline_df, weights=None):
"""
从单股日K线(时间升序,≥30行)生成多维度推荐原因。
返回 (reason_str, factor_detail_dict)