02_ad_model_update_test.sh 987 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. set -x
  3. export PATH=$SPARK_HOME/bin:$PATH
  4. export HADOOP_CONF_DIR=/etc/taihao-apps/hadoop-conf
  5. export JAVA_HOME=/usr/lib/jvm/java-1.8.0
  6. export PREDICT_CACHE_PATH=/root/zhaohp/XGB/test/predict_cache/
  7. export SEGMENT_BASE_PATH=/dw/recommend/model/36_model_attachment_test/score_calibration_file
  8. sh_path=$(cd $(dirname $0); pwd)
  9. source ${sh_path}/00_common.sh
  10. online_model_predict_result_path=/dw/recommend/model/34_ad_predict_data/20241110_351_1000_1031_1106
  11. new_model_predict_result_path=/dw/recommend/model/34_ad_predict_data/20241110_351_1000_1103_1109
  12. predict_analyse_file_path=/root/zhaohp/XGB/test/predict_analyse_file/20241110_351_1000_analyse.txt
  13. calibration_file_path=/root/zhaohp/XGB/test/model_xgb_351_1000_v2_calibration.txt
  14. local python_return_code=$(python ${sh_path}/model_predict_analyse.py -op ${online_model_predict_result_path} -np ${new_model_predict_result_path} -af ${predict_analyse_file_path} -cf ${calibration_file_path})
  15. echo "${python_return_code}"