Ver Fonte

Update 02_ad_model_14d_v1_update: try update every day

fengzhoutian há 1 mês atrás
pai
commit
7055957b44
1 ficheiros alterados com 6 adições e 11 exclusões
  1. 6 11
      ad/02_ad_model_14d_v1_update.sh

+ 6 - 11
ad/02_ad_model_14d_v1_update.sh

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