浏览代码

feat:全流程02更新脚本自测

zhaohaipeng 9 月之前
父节点
当前提交
22ff402050
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      ad/02_ad_model_update_twice_daily.sh

+ 8 - 8
ad/02_ad_model_update_twice_daily.sh

@@ -302,7 +302,7 @@ success_inform() {
     local step_end_time=$(date +%s)
     local msg="\n\t - 广告模型文件更新完成 \n\t - 前一天线上模型全天数据AUC: $yesterday_online_auc \n\t - 前一天新模型全天数据AUC: $yesterday_new_auc \n\t - 新模型AUC: $new_auc \n\t - 线上模型AUC: $online_auc  \n\t - AUC差值: $auc_diff \n\t - 模型上传路径: $online_model_path"
     echo -e "$LOG_PREFIX -- 模型更新完成 -- $msg: 耗时 $step_elapsed"
-    local elapsed=$(($(date +%s -d "$step_end_time") - $(date +%s -d "$start_time")))
+    local elapsed=$(($step_end_time - $start_time))
     # /root/anaconda3/bin/python ad/ad_monitor_util.py --level info --msg "$msg" --start "$start_time" --elapsed "$elapsed"
 }
 
@@ -310,19 +310,19 @@ main() {
 
     global_init
 
-    # check_ad_hive
+    check_ad_hive
 
-    # make_origin_data
+    make_origin_data
 
-    # make_bucket_feature
+    make_bucket_feature
 
-    # model_train
+    model_train
 
-    # auc_compare
+    auc_compare
 
-    # model_to_online_format
+    model_to_online_format
 
-    # model_upload_oss
+    model_upload_oss
 
     model_local_back