feat(factors): 添加 GTJA alpha 因子并优化计算性能
- 新增 190+ 个 GTJA alpha 因子到因子列表 - 优化 ts_kurt、ts_rank、ts_argmax/min、ts_prod 计算性能 - 性能分析器新增超时检测(180秒)和实时打印功能 - 简化探针因子选择脚本的 main 函数入口
This commit is contained in:
@@ -328,20 +328,7 @@ def run_probe_feature_selection_with_all_factors(debug: bool = True):
|
||||
|
||||
|
||||
def main():
|
||||
"""主入口函数,支持命令行参数"""
|
||||
parser = argparse.ArgumentParser(
|
||||
description="探针法因子筛选 - 使用 FactorManager 中所有因子"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--debug",
|
||||
"-d",
|
||||
action="store_true",
|
||||
help="启用 debug 模式,显示详细的性能统计信息",
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
selected = run_probe_feature_selection_with_all_factors(debug=args.debug)
|
||||
selected = run_probe_feature_selection_with_all_factors(debug=True)
|
||||
return selected
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user