|
@@ -12,7 +12,7 @@ FM_TRAIN="/root/sunmingze/alphaFM/bin/fm_train"
|
|
|
|
|
|
|
|
|
|
|
|
-$HADOOP fs -text /dw/recommend/model/43_recsys_train_data/20240713/* | ${FM_TRAIN} -m /root/joe/recommend-emr-dataprocess/model/${model_name}_all_20240713.txt -dim ${bias} -core 8 -im /root/joe/recommend-emr-dataprocess/model/model_nba8_0709_0712.txt
|
|
|
+#$HADOOP fs -text /dw/recommend/model/43_recsys_train_data/20240713/* | ${FM_TRAIN} -m /root/joe/recommend-emr-dataprocess/model/${model_name}_all_20240713.txt -dim ${bias} -core 8 -im /root/joe/recommend-emr-dataprocess/model/model_nba8_0709_0712.txt
|
|
|
|
|
|
current_date="$start_date"
|
|
|
|
|
@@ -22,7 +22,7 @@ while [[ "$current_date" != "$end_date" ]]; do
|
|
|
yesterday=$(date -d "$current_date - 1 day" +%Y%m%d)
|
|
|
echo model-day-$yesterday
|
|
|
echo data-day-$current_date
|
|
|
- $HADOOP fs -text /dw/recommend/model/43_recsys_train_data/$current_date/* | ${FM_TRAIN} -m /root/joe/recommend-emr-dataprocess/model/${model_name}_all_$current_date.txt -dim ${bias} -core 8 -im $MODEL_PATH/${model_name}_all_$yesterday.txt
|
|
|
+ $HADOOP fs -text /dw/recommend/model/43_recsys_train_data/$current_date/* | ${FM_TRAIN} -m /root/joe/recommend-emr-dataprocess/model/${model_name}_all_$current_date.txt -dim ${bias} -core 8 -im /root/joe/recommend-emr-dataprocess/model/${model_name}_all_$yesterday.txt
|
|
|
current_date=$(date -d "$current_date + 1 day" +%Y%m%d)
|
|
|
done
|
|
|
|