Explorar o código

update abs(uv_differ) < not_update --> abs(uv_differ) <= not_update

liqian %!s(int64=2) %!d(string=hai) anos
pai
achega
f738f848ba
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ad_threshold_auto_update.py

+ 1 - 1
ad_threshold_auto_update.py

@@ -90,7 +90,7 @@ def get_threshold_record_new_by_uv(ad_abtest_abcode_config, feature_df, threshol
                 continue
             # 计算uv差值
             uv_differ = current_uv - target_uv
-            if abs(uv_differ) < not_update:
+            if abs(uv_differ) <= not_update:
                 continue
             # 获取当前阈值参数
             threshold_param_old = threshold_record_old[ab_test_group].get('group')