Browse Source

feat:修改训练资源

zhaohaipeng 4 months ago
parent
commit
746995d26a
1 changed files with 8 additions and 8 deletions
  1. 8 8
      ad/01_ad_model_update.sh

+ 8 - 8
ad/01_ad_model_update.sh

@@ -401,17 +401,17 @@ main() {
 
   bucket_feature
 
-  # if [ "${current_day_of_week}" -eq 1 ] || [ "${current_day_of_week}" -eq 3 ] || [ "${current_day_of_week}" -eq 5 ]; then
-  #   echo "当前是周一,周三或周五,开始训练并更新模型"
+  if [ "${current_day_of_week}" -eq 1 ] || [ "${current_day_of_week}" -eq 3 ] || [ "${current_day_of_week}" -eq 5 ]; then
+    echo "当前是周一,周三或周五,开始训练并更新模型"
     
-  #   xgb_train
+    xgb_train
 
-  #   model_predict
+    model_predict
 
-  #   model_upload_oss
-  # else
-  #   echo "当前是周一,周三或周五,不更新模型"
-  # fi 
+    model_upload_oss
+  else
+    echo "当前是周一,周三或周五,不更新模型"
+  fi 
 
 }