Explorar o código

modify: 调整单调判断函数。

wangzhaoyang hai 4 meses
pai
achega
7a9abf0ac0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      feature/feature_utils.py

+ 1 - 0
feature/feature_utils.py

@@ -85,6 +85,7 @@ def f_judge_monto(bd_list: list, pos_neg_cnt: int = 1) -> int:
             continue
         else:
             # 记录一次符号变化
+            start_tr = tmp_tr
             pos_neg_flag += 1
             if pos_neg_flag > pos_neg_cnt:
                 return False