소스 검색

Merge branch 'ad-recommend-threshold-update-20221102' into test

liqian 2 년 전
부모
커밋
60fb9409f6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      ad_user_video_predict.py

+ 2 - 2
ad_user_video_predict.py

@@ -87,9 +87,9 @@ def predict_ad_group_video():
     for index, item in group_df.iterrows():
         predict_df[item['group']] = predict_df['video_ad_share_rate'] * item['group_ad_share_rate']
         # 获取分组对应的均值作为阈值
-        threshold_data[item['group']] = predict_df[item['group']].mean() / 24 * 13
+        threshold_data[item['group']] = predict_df[item['group']].mean() / 48 * 25
         all_group_data.extend(predict_df[item['group']].tolist())
-    threshold_data['mean_group'] = np.mean(all_group_data) / 24 * 13
+    threshold_data['mean_group'] = np.mean(all_group_data) / 48 * 25
     log_.info(f"threshold_data = {threshold_data}")
     # 将阈值写入redis
     for key, val in threshold_data.items():