Parcourir la source

feat:飞书添加真实CTCVR

zhaohaipeng il y a 6 mois
Parent
commit
089af98fac
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      ad/01_ad_model_update.sh

+ 4 - 2
ad/01_ad_model_update.sh

@@ -53,6 +53,7 @@ predict_analyse_file_path=""
 # 保存模型评估的分析结果
 old_incr_rate_avg=0
 new_incr_rate_avg=0
+declare -A real_score_map
 declare -A old_score_map
 declare -A new_score_map
 
@@ -83,9 +84,9 @@ send_success_upload_msg(){
   msg+="\n\t - 模型在HDFS中的路径: ${model_save_path}"
   msg+="\n\t - 模型上传OSS中的路径: ${MODEL_OSS_PATH}/${model_name}.tar.gz"
   
-  local top10_msg="| CID  | 老模型    | 新模型    | \n| ---- | -------- | -------- | "
+  local top10_msg="| CID  | 真实CTCVR  | 老模型    | 新模型    | \n| ---- | -------- | -------- | -------- | "
   for cid in "${!new_score_map[@]}"; do
-    top10_msg="${top10_msg} \n| ${cid} | ${old_score_map[$cid]} | ${new_score_map[$cid]} | "
+    top10_msg="${top10_msg} \n| ${cid} | ${real_score_map[$cid]} | ${old_score_map[$cid]} | ${new_score_map[$cid]} | "
   done
 
   local step_end_time=$(date +%s)
@@ -229,6 +230,7 @@ calc_model_predict() {
       read -a numbers <<< "${line}"
 
       # 分数分别保存
+      real_score_map[${numbers[0]}]=${numbers[3]}
       old_score_map[${numbers[0]}]=${numbers[6]}
       new_score_map[${numbers[0]}]=${numbers[7]}