zhangbo 1 year ago
parent
commit
6b8e9e4de6
2 changed files with 3 additions and 3 deletions
  1. 2 2
      zhangbo/02_train_go.sh
  2. 1 1
      zhangbo/03_predict.sh

+ 2 - 2
zhangbo/02_train_go.sh

@@ -1,5 +1,5 @@
-$start_date=$1
-$end_date=$2
+start_date=$1
+end_date=$2
 #day_yes=$(date -d"yesterday $day" +%Y%m%d)
 MODEL_PATH="./model/"
 SAMPLE_PATH="/dw/recommend/model/share_ratio_samples/"

+ 1 - 1
zhangbo/03_predict.sh

@@ -3,7 +3,7 @@ day=$1
 model_name=$2
 HADOOP="/opt/apps/HADOOP-COMMON/hadoop-common-current/bin/hadoop"
 $HADOOP fs -text /dw/recommend/model/share_ratio_samples/dt=$day/* | /root/sunmingze/alphaFM/bin/fm_predict -m model/$model_name -dim 0 -core 8 -out predict/predict_$day.txt
-cat predict/predict_$day.txt | ./AUC/AUC
+cat predict/predict_$day.txt | /root/sunmingze/AUC/AUC
 
 # nohup sh 03_predict.sh 20231215 model_share_20231214.txt >p3.log 2>&1 &
 # cat predict/predict_.txt