Explorar o código

feat:修改模型评估结果分析脚本

zhaohaipeng hai 4 meses
pai
achega
43dd7d585f
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  1. 2 0
      ad/holidays.txt
  2. 1 1
      ad/model_predict_analyse.py

+ 2 - 0
ad/holidays.txt

@@ -15,6 +15,8 @@
 2024-11-27
 20241128
 2024-11-28
+20241212
+2024-12-12
 圣诞节
 20241225
 2024-12-25

+ 1 - 1
ad/model_predict_analyse.py

@@ -139,7 +139,7 @@ def _main(old_predict_path: str, new_predict_path: str, calibration_file: str, a
     predict_local_save_for_auc(old_df, new_df)
 
     # 新模型校准文件保存本地,用于同步OSS
-    new_calibration_df.to_csv(calibration_file, sep="\t", index=False)
+    new_calibration_df[['cid', 'diff_rate']].to_csv(calibration_file, sep="\t", index=False, header=False)
 
     old_agg_df = predict_df_agg(old_df)
     new_agg_df = predict_df_agg(new_df)