liqian 2 年之前
父节点
当前提交
d2c4b976c3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ad_xgboost_threshold_update.py

+ 1 - 0
ad_xgboost_threshold_update.py

@@ -121,6 +121,7 @@ def threshold_update(project, table, dt, app_type):
     predict_mean = predict_df['res_predict'].mean()
     for ab_code, param in record.items():
         threshold = predict_mean * param
+        print(f"{abtest_id}-{ab_code}: {threshold}")
         # 写入redis
         threshold_key = f"{xgb_config['threshold_key_prefix']}{abtest_id}:{ab_code}"
         redis_helper.set_data_to_redis(key_name=threshold_key, value=threshold, expire_time=48 * 3600)