run_ecg.sh
885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
cd experiments/ecg
test=1 # 0 means train the model, 1 means evaluate the model
threshold=0.02
fold_cnt=1
dataroot="./dataset/preprocessed/ano0/"
model="beatgan"
w_adv=1
niter=100
lr=0.0001
n_aug=0
outf="./output"
for (( i=0; i<$fold_cnt; i+=1))
do
echo "#################################"
echo "######## Folder $i ############"
if [ $test = 0 ]; then
python -u main.py \
--dataroot $dataroot \
--model $model \
--niter $niter \
--lr $lr \
--outf $outf \
--folder $i
else
python -u main.py \
--dataroot $dataroot \
--model $model \
--niter $niter \
--lr $lr \
--outf $outf \
--folder $i \
--outf $outf \
--istest \
--threshold $threshold
fi
done