-
Notifications
You must be signed in to change notification settings - Fork 2
/
mlp_validation.sh
executable file
·71 lines (63 loc) · 1.28 KB
/
mlp_validation.sh
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
source activate_venv.sh
datadir=data/
outdir=data/MLP_validation/
method='resampling'
# method='naive'
nfolds=5
nlayers=3
nunits='200 500 1000'
L2='0 1e-6 1e-3'
dropout=0
nepochs=200
learningrate='1e-1 1e-2 1e-3 1e-4 1e-5'
optimizer='SGD AdamW'
seed=1
if [ $method = 'resampling' ];
then
python3 mlp_validation_resampling.py \
--datadir ${datadir} \
--outdir ${outdir} \
--labels region67 \
--nsamples $nfolds \
--nunits $nunits \
--nlayers $nlayers \
--L2 $L2 \
--dropout $dropout \
--nepochs $nepochs \
--learningrate $learningrate \
--optimizer $optimizer \
--seed $seed
elif [ $method = 'naive' ];
then
python3 mlp_validation_naive.py \
--datadir $datadir \
--outdir $outdir \
--labels region67 \
--nfolds $nfolds \
--nunits $nunits \
--nlayers $nlayers \
--L2 $L2 \
--dropout $dropout \
--nepochs $nepochs \
--learningrate $learningrate \
--optimizer $optimizer \
--seed $seed
fi
#Original parameters
# nunits=200
# nlayers=3
# dropout=0
# L2=1e-6
# nepochs=200
# learningrate=1e-5
# optimizer='AdamW'
#Updated parameters
# nunits=200
# nlayers=3
# dropout=0
# L2=0
# nepochs=50
# learningrate=0.01
# optimizer='SGD'
deactivate