01_train.sh 1.2 KB

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. set -e
  3. set -x
  4. day=$1
  5. train_path=$2
  6. model_name=$3
  7. v_l1=$4
  8. v_l2=$5
  9. HADOOP="/opt/apps/HADOOP-COMMON/hadoop-common-current/bin/hadoop"
  10. $HADOOP fs -text ${train_path}/dt=$day/* | /root/sunmingze/alphaFM/bin/fm_train -m model/${model_name}_${day}.txt -dim 1,1,0 -core 8 \
  11. -v_l1 ${v_l1} -v_l2 ${v_l2}
  12. # nohup sh 01_train.sh 20231214 /dw/recommend/model/share_ratio_samples_v2/ model_sharev2 >p1.log 2>&1 &
  13. # nohup sh 01_train.sh 20231220 /dw/recommend/model/ros_sample_v2/ model_ros_v2 >p_model_ros_v2.log 2>&1 &
  14. # str 模型路径:/dw/recommend/model/share_ratio_samples_v2
  15. # ros 模型路径:/dw/recommend/model/ros_sample/
  16. # nohup sh 01_train.sh 20240114 /dw/recommend/model/01_str_data model_str_big >p1.log 2>&1 &
  17. # nohup sh 01_train.sh 20240114 /dw/recommend/model/01_str_data model_str_big1 0.5 1.0 >p1_train.log 2>&1 &
  18. # nohup sh 01_train.sh 20240114 /dw/recommend/model/02_str_data model_str_small >p2.log 2>&1 &
  19. # nohup sh 01_train.sh 20240114 /dw/recommend/model/03_str_data model_str_mid >p3.log 2>&1 &
  20. # nohup sh 01_train.sh 20240114 /dw/recommend/model/04_str_data model_str_mid2 >p4_train.log 2>&1 &
  21. # nohup sh 01_train.sh 20240114 /dw/recommend/model/05_str_data model_str_mid3 >p5_train.log 2>&1 &