| 12345678910111213141516171819202122232425262728293031 |
- #!/bin/bash
- abs_path=$(cd `dirname $0`; pwd)
- feat_file=""
- end_date=$(date +%Y%m%d -d "-2 $days day")
- if(($#==1))
- then
- feat_file=$1
- elif(($#==2))
- then
- feat_file=$1
- end_date=$2
- else
- exit -1
- fi
- # 1. vocab
- vocab_py="${abs_path}/../../src/get_fm_feature_name_v1.py"
- vocab_file="${abs_path}/../../vocab/vocab_v1_${end_date}.txt"
- echo `date` "python3 $vocab_py --all $feat_file --output $vocab_file"
- python3 $vocab_py --all $feat_file --output $vocab_file &
- wait
- sleep 30s
- # 2. sample
- sample_sh="${abs_path}/rov_sample_v1.sh"
- echo `date` "sh +x $sample_sh $end_date $end_date $vocab_file"
- sh +x $sample_sh $end_date $end_date $vocab_file &
- wait
- sleep 30s
|