-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_image_datasets.sh
executable file
·55 lines (41 loc) · 1.32 KB
/
run_image_datasets.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
#!/usr/bin/bash
# --if-damp 0.01 for other than if
shared='--n-repeats 5 --p-known 100 --max-iters 100 --n-epochs 100 --threshold 0.2 --if-damp 1 --lissa-depth 10 --lissa-samples 1 --bit 64'
for L in fullnet convnet; do
for D in mnist fashion_mnist; do
for I in margin; do
# UPPER BOUND
cmd="python -u main.py 200 q3 $D $L $shared --noise-type random --inspector always -p 0.0"
echo " #### $cmd #### "
$cmd
# NO CE
cmd="python -u main.py 200 q3 $D $L $shared -p 0.2 --no-ce --noise-type random --inspector $I --negotiator nearest"
echo " #### $cmd #### "
$cmd
for NEG in top_fisher practical_fisher nearest ce_removal; do
cmd="python -u main.py 200 q3 $D $L $shared -p 0.2 --noise-type random --inspector $I --negotiator $NEG"
echo " #### $cmd #### "
$cmd
done
done
done
done
for L in logreg; do
for D in mnist; do
for I in margin; do
# UPPER BOUND
cmd="python -u main.py 200 q3 $D $L $shared --noise-type random --inspector always -p 0.0"
echo " #### $cmd #### "
$cmd
# NO CE
cmd="python -u main.py 200 q3 $D $L $shared -p 0.2 --no-ce --noise-type random --inspector $I --negotiator nearest"
echo " #### $cmd #### "
$cmd
for NEG in top_fisher practical_fisher nearest ce_removal; do
cmd="python -u main.py 200 q3 $D $L $shared -p 0.2 --noise-type random --inspector $I --negotiator $NEG"
echo " #### $cmd #### "
$cmd
done
done
done
done