-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmnist_exec.sh
More file actions
111 lines (93 loc) · 1.85 KB
/
mnist_exec.sh
File metadata and controls
111 lines (93 loc) · 1.85 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
export cuda_visible_devices=2
####################### Basic schemes
#EP
:<<BLOCK
python mnist_pruning_exps.py --algo ep \
--lr 0.01 \
--epochs 50 \
--optimizer sgd \
--sparsity 0.9 \
--results-filename vanilla_ep_sparsity_0.9.csv
BLOCK
# HC
:<<BLOCK
# HC
python mnist_pruning_exps.py --algo hc \
--lr 0.01 \
--epochs 50 \
--optimizer adam \
--wd 0 \
--results-filename vanilla_hc_adam.csv
BLOCK
####################### HC (iterative)
#:<<BLOCK
python mnist_hc_iterative.py --algo hc_iter \
--lr 0.01 \
--epochs 100 \
--optimizer adam \
--wd 0 \
--iter_period 5 \
--results-filename hc_iter_test.csv
#--results-filename hc_iter_period_5_adam_lr_1e-2_100epoch.csv
#BLOCK
:<<BLOCK
python mnist_hc_iterative.py --algo hc_iter \
--lr 0.01 \
--epochs 50 \
--optimizer adam \
--wd 0 \
--iter_period 1 \
--rewind 1 \
--results-filename hc_rewind_iter_period_1.csv
#--arch FC \
#--n_hidden_layer 3 \
BLOCK
#:<<BLOCK
python mnist_hc_iterative.py --algo hc \
--lr 0.01 \
--epochs 100 \
--optimizer adam \
--wd 0 \
--results-filename hc_vanilla_lr_1e-2_100epoch.csv
#BLOCK
####################### HC (activation pruning)
:<<BLOCK
python mnist_activation_hc.py --algo hc_act \
--lr 0.01 \
--epochs 50 \
--optimizer adam \
--wd 0 \
--arch FC \
--n_hidden_layer 3 \
BLOCK
### FC (2 layer)
:<<BLOCK
# Activation pruning (HC)
python mnist_activation_hc.py --algo hc_act \
--lr 0.1 \
--epochs 50 \
--optimizer sgd \
--arch FC \
--n_layer 2 \
#--results-filename pruning_hc_act_adam_FC.csv
BLOCK
### Ramanujan network
:<<BLOCK
# Activation pruning (HC)
python mnist_activation_hc.py --algo hc_act \
--lr 0.01 \
--epochs 50 \
--optimizer adam \
--wd 0
#--results-filename pruning_hc_act_adam.csv
BLOCK
:<<BLOCK
# Activation pruning (HC)
python mnist_activation_hc.py --algo hc_act \
--lr 0.01 \
--epochs 50 \
--optimizer adam \
--wd 0.0001 \
--bias \
--results-filename pruning_hc_act_adam.csv
BLOCK