scripts/train_ninapro_db5_doswald.sh
## pretrain 47 gpu 1
#python -m sigr.train exp --log log --snapshot model \
#    --root .cache/Feature_selection/DOSWALD-ninapro-db5-featuresigimg-win-40-stride-20/universal-one-fold-intra-subject \
#    --batch-size 1000 --decay-all --dataset ninapro-db5 \
#    --num-filter 64 \
#    --num-epoch 28 --lr-step 16 --lr-step 24 --snapshot-period 28 \
#    --balance-gesture 1 \
#    --feature-name 'featuresigimg_v2' \
#    --fusion-type 'single' \
#    --feature-list '["hht58", "arr29", "mnf", "mav", "wl", "wamp", "zc", "mavslpframewise", "arc", "mnf_MEDIAN_POWER", "psr"]' \
#    --window 1 \
#    --num-semg-row 1 --num-semg-col 16 \
#    --gpu 1 \
#    --preprocess 'ninapro-lowpass' \
#    crossval --crossval-type universal-one-fold-intra-subject --fold 0

## train
for i in $(seq 0 9); do
    python -m sigr.train exp --log log --snapshot model \
    --root .cache/Feature_selection/DOSWALD-dropout0.5-ninapro-db5-featuresigimg-win-40-stride-20/one-fold-intra-subject-$i \
    --params .cache/Feature_selection/DOSWALD-ninapro-db5-featuresigimg-win-40-stride-20/universal-one-fold-intra-subject/model-0028.params \
    --batch-size 1000 --decay-all --dataset ninapro-db5 \
    --num-filter 64 \
    --num-epoch 28 --lr-step 16 --lr-step 24 --snapshot-period 28 \
    --balance-gesture 1 \
    --feature-name 'featuresigimg_v2' \
    --fusion-type 'single' \
    --feature-list '["hht58", "arr29", "mnf", "mav", "wl", "wamp", "zc", "mavslpframewise", "arc", "mnf_MEDIAN_POWER", "psr"]' \
    --window 1 \
    --num-semg-row 1 --num-semg-col 16 \
    --preprocess 'ninapro-lowpass' \
    --gpu 1 \
    crossval --crossval-type one-fold-intra-subject --fold $i
done

## truely train
#for i in $(seq 0 16); do
#    python -m sigr.train exp --log log --snapshot model \
#    --root .cache/Feature_selection_AfterPretrain/lr0.2-DWTC-biopatrec-db2-3FSsigimg-win-300-stride-100/one-fold-intra-subject-$i \
#    --params .cache/Feature_selection_pretrain/lr0.2-DWTC-biopatrec-db2-3FSsigimg-win-300-stride-100/one-fold-intra-subject-$i/model-0028.params \
#    --batch-size 800 --decay-all --dataset biopatrec-db2 \
#    --num-filter 64 \
#    --num-epoch 28 --lr-step 16 --lr-step 24 --snapshot-period 28 \
#    --balance-gesture 1 \
#    --feature-name 'featuresigimg_v2' \
#    --fusion-type 'single' \
#    --feature-list '["dwt"]' \
#    --window 1 \
#    --dropout 0.65 \
#    --num-semg-row 1 --num-semg-col 8 \
#    --gpu 0 \
#    crossval --crossval-type one-fold-intra-subject --fold $i
#done
