|
@@ -49,15 +49,20 @@ for cid in "${!new_score_map[@]}"; do
|
|
echo "\t CID: $cid, 老模型分数: ${old_score_map[$cid]}, 新模型分数: ${new_score_map[$cid]}"
|
|
echo "\t CID: $cid, 老模型分数: ${old_score_map[$cid]}, 新模型分数: ${new_score_map[$cid]}"
|
|
done
|
|
done
|
|
|
|
|
|
-local msg="\n\t - 广告模型文件更新完成" \
|
|
|
|
- "\n\t - 老模型Top10差异平均值: ${old_incr_rate_avg}" \
|
|
|
|
- "\n\t - 新模型Top10差异平均值: ${new_incr_rate_avg}" \
|
|
|
|
- "\n\t - 模型在HDFS中的路径: ${model_save_path}" \
|
|
|
|
- "\n\t - 模型上传路径: ${MODEL_OSS_PATH}/${model_name}.tar.gz"
|
|
|
|
|
|
+msg=" 广告模型文件更新完成"
|
|
|
|
+msg+="\n\t - 老模型Top10差异平均值: ${old_incr_rate_avg}"
|
|
|
|
+msg+="\n\t - 新模型Top10差异平均值: ${new_incr_rate_avg}"
|
|
|
|
+msg+="\n\t - 模型在HDFS中的路径: ${model_save_path}"
|
|
|
|
+msg+="\n\t - 模型上传路径: ${MODEL_OSS_PATH}/${model_name}.tar.gz"
|
|
|
|
|
|
local top10_msg = "| CID | 老模型 | 新模型 | \n| ---- | -------- | -------- | "
|
|
local top10_msg = "| CID | 老模型 | 新模型 | \n| ---- | -------- | -------- | "
|
|
for cid in "${!new_score_map[@]}"; do
|
|
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} | ${old_score_map[$cid]} | ${new_score_map[$cid]} | "
|
|
|
|
+done
|
|
|
|
+
|
|
|
|
+local top10_msg = "| CID | 老模型 | 新模型 | \n| ---- | -------- | -------- | "
|
|
|
|
+for cid in "${!new_score_map[@]}"; do
|
|
|
|
+ top10_msg="${top10_msg} \n| ${cid} | ${old_score_map[$cid]} | ${new_score_map[$cid]} | "
|
|
done
|
|
done
|
|
|
|
|
|
|
|
|