8000 添加skip_simplify=True,解决部分表达式简化成1或0 · wukan1986/alpha_examples@831f86d · GitHub
[go: up one dir, main page]

Skip to content

Commit 831f86d

Browse files
committed
添加skip_simplify=True,解决部分表达式简化成1或0
1 parent 5399788 commit 831f86d

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

gp_base_cs/helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ def batched_exprs(batch_id, exprs_list, gen, label, split_date, df_input):
9292
# 表达式转脚本
9393
codes, G = tool.all(exprs_list, style='polars', template_file='template.py.j2',
9494
replace=False, regroup=True, format=True,
95-
date='date', asset='asset', over_null="partition_by")
95+
date='date', asset='asset', over_null="partition_by",
96+
skip_simplify=True)
9697

9798
# with open('out1.py', 'w') as f:
9899
# f.write(codes)

gp_base_ts/helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ def batched_exprs(batch_id, exprs_list, gen, label, split_date, df_input):
8787
# 表达式转脚本
8888
codes, G = tool.all(exprs_list, style='polars', template_file='template.py.j2',
8989
replace=False, regroup=True, format=True,
90-
date='date', asset='asset', over_null="partition_by")
90+
date='date', asset='asset', over_null="partition_by",
91+
skip_simplify=True)
9192

9293
cnt = len(exprs_list)
9394
logger.info("{}代{}批 代码 开始执行。共 {} 条 表达式", gen, batch_id, cnt)

gp_run/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ polars_ta
33
tensorboard
44
tensorboardX
55
more_itertools
6-
expr_codegen>=0.11.0
6+
expr_codegen>=0.13.5

gp_run/requirements_node.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
ray[default]
22
polars_ta
3-
expr_codegen>=0.11.0
3+
expr_codegen>=0.13.5
44
more_itertools

0 commit comments

Comments
 (0)
0