Browse Source

feat:添加评估结果分析脚本

zhaohaipeng 6 months ago
parent
commit
333c155e34
1 changed files with 7 additions and 6 deletions
  1. 7 6
      ad/01_ad_model_update.sh

+ 7 - 6
ad/01_ad_model_update.sh

@@ -206,7 +206,7 @@ calc_model_predict() {
 
       read -a numbers <<< "${line}"
 
-      if [[ -z ${old_diff_abs} ]];then
+      if [[ -z ${old_incr_rate_list} ]];then
           old_incr_rate_list="${numbers[6]}"
           new_incr_rate_list="${numbers[7]}"
       else
@@ -298,16 +298,17 @@ model_upload_oss() {
     ${HADOOP} fs -put ${model_name}.tar.gz ${MODEL_OSS_PATH}
     local return_code=$?
     check_run_status $return_code $step_start_time "模型上传OSS任务"
+
+
+    echo ${model_save_path} > ${model_path_file}
+
+    rm -f ./${model_name}.tar.gz
+    rm -rf ./${model_name}
   )
 
   local return_code=$?
   check_run_status $return_code $step_start_time "模型上传OSS任务"
 
-  echo ${model_save_path} > ${model_path_file}
-
-  rm -f ./${model_name}.tar.gz
-  rm -rf ./${model_name}
-
   local step_end_time=$(date +%s)
   local elapsed=$(($step_end_time - $start_time))