Commit 830bf94c authored by E144069X's avatar E144069X

Added cross-validation script

parent 791aaad1
#5 4 88 6 6 model_biggpu.config
K=$1
tr_len=$3
val_len=$4
test_len=$5
k=$2
tr_s=$((100*k/K))
tr_e=$(((tr_s+tr_len)%100))
val_s=$tr_e
val_e=$(((val_s+val_len)%100))
test_s=$val_e
test_e=$(((test_s+test_len)%100))
echo $tr_s $val_s $test_s
python trainVal.py -c $6 --exp_id cv3 --model_id res18_cv$k --train_part_beg $tr_s --val_part_beg $val_s --test_part_beg $test_s \
--train_part_end $tr_e --val_part_end $val_e --test_part_end $test_e \
--distributed $7 --distrib_size $8 --cuda $9 --multi_gpu $9 \
--temp_mod linear --feat resnet18
python trainVal.py -c $6 --exp_id cv3 --model_id r3D18_cv$k --train_part_beg $tr_s --val_part_beg $val_s --test_part_beg $test_s \
--train_part_end $tr_e --val_part_end $val_e --test_part_end $test_e \
--distributed $7 --distrib_size $8 --cuda $9 --multi_gpu $9 \
--temp_mod linear --feat r2plus1d_18 --epochs 1 --run_test False
python trainVal.py -c $6 --exp_id cv3 --model_id res18LSTM_cv$k --train_part_beg $tr_s --val_part_beg $val_s --test_part_beg $test_s \
--train_part_end $tr_e --val_part_end $val_e --test_part_end $test_e \
--distributed $7 --distrib_size $8 --cuda $9 --multi_gpu $9 \
--temp_mod lstm --feat resnet18 --epochs 1 --run_test False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment