-
Notifications
You must be signed in to change notification settings - Fork 34
/
run_drebin_cade.sh
executable file
·175 lines (168 loc) · 10.2 KB
/
run_drebin_cade.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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
#### use family 7 as the unseen family #######
mkdir -p logs/drebin_new_7/ && \
nohup python -u main.py \
--data drebin_new_7 \
--newfamily-label 7 \
-c mlp \
--mlp-retrain 0 \
--mlp-hidden 100-30 \
--mlp-lr 0.001 \
--mlp-batch-size 32 \
--mlp-epochs 50 \
--mlp-dropout 0.2 \
--cae-hidden 512-128-32 \
--cae-lr 0.0001 \
--cae-batch-size 64 \
--cae-lambda-1 1e-1 \
--similar-ratio 0.25 \
--margin 10.0 \
--display-interval 10 \
--mad-threshold 3.5 \
> logs/drebin_new_7/mlp_$(date "+%m.%d-%H.%M.%S")_cae_lambda_1e-1.log &
####### use family 6 as the unseen family #######
mkdir -p logs/drebin_new_6/ && \
nohup python -u main.py \
--data drebin_new_6 \
--newfamily-label 6 \
-c mlp \
--mlp-retrain 0 \
--mlp-hidden 100-30 \
--mlp-lr 0.001 \
--mlp-batch-size 32 \
--mlp-epochs 50 \
--mlp-dropout 0.2 \
--cae-hidden 512-128-32 \
--cae-lr 0.0001 \
--cae-batch-size 64 \
--cae-lambda-1 1e-1 \
--similar-ratio 0.25 \
--margin 10.0 \
--display-interval 10 \
--mad-threshold 3.5 \
> logs/drebin_new_6/mlp_$(date "+%m.%d-%H.%M.%S")_cae_lambda_1e-1.log &
####### use family 5 as the unseen family #######
mkdir -p logs/drebin_new_5/ && \
nohup python -u main.py \
--data drebin_new_5 \
--newfamily-label 5 \
-c mlp \
--mlp-retrain 0 \
--mlp-hidden 100-30 \
--mlp-lr 0.001 \
--mlp-batch-size 32 \
--mlp-epochs 50 \
--mlp-dropout 0.2 \
--cae-hidden 512-128-32 \
--cae-lr 0.0001 \
--cae-batch-size 64 \
--cae-lambda-1 1e-1 \
--similar-ratio 0.25 \
--margin 10.0 \
--display-interval 10 \
--mad-threshold 3.5 \
> logs/drebin_new_5/mlp_$(date "+%m.%d-%H.%M.%S")_cae_lambda_1e-1.log &
###### use family 4 as the unseen family #######
mkdir -p logs/drebin_new_4/ && \
nohup python -u main.py \
--data drebin_new_4 \
--newfamily-label 4 \
-c mlp \
--mlp-retrain 0 \
--mlp-hidden 100-30 \
--mlp-lr 0.001 \
--mlp-batch-size 32 \
--mlp-epochs 50 \
--mlp-dropout 0.2 \
--cae-hidden 512-128-32 \
--cae-lr 0.0001 \
--cae-batch-size 64 \
--cae-lambda-1 1e-1 \
--similar-ratio 0.25 \
--margin 10.0 \
--display-interval 10 \
--mad-threshold 3.5 \
> logs/drebin_new_4/mlp_$(date "+%m.%d-%H.%M.%S")_cae_lambda_1e-1.log &
####### use family 3 as the unseen family #######
mkdir -p logs/drebin_new_3/ && \
nohup python -u main.py \
--data drebin_new_3 \
--newfamily-label 3 \
-c mlp \
--mlp-retrain 0 \
--mlp-hidden 100-30 \
--mlp-lr 0.001 \
--mlp-batch-size 32 \
--mlp-epochs 50 \
--mlp-dropout 0.2 \
--cae-hidden 512-128-32 \
--cae-lr 0.0001 \
--cae-batch-size 64 \
--cae-lambda-1 1e-1 \
--similar-ratio 0.25 \
--margin 10.0 \
--display-interval 10 \
--mad-threshold 3.5 \
> logs/drebin_new_3/mlp_$(date "+%m.%d-%H.%M.%S")_cae_lambda_1e-1.log &
####### use family 2 as the unseen family #######
mkdir -p logs/drebin_new_2/ && \
nohup python -u main.py \
--data drebin_new_2 \
--newfamily-label 2 \
-c mlp \
--mlp-retrain 0 \
--mlp-hidden 100-30 \
--mlp-lr 0.001 \
--mlp-batch-size 32 \
--mlp-epochs 50 \
--mlp-dropout 0.2 \
--cae-hidden 512-128-32 \
--cae-lr 0.0001 \
--cae-batch-size 64 \
--cae-lambda-1 1e-1 \
--similar-ratio 0.25 \
--margin 10.0 \
--display-interval 10 \
--mad-threshold 3.5 \
> logs/drebin_new_2/mlp_$(date "+%m.%d-%H.%M.%S")_cae_lambda_1e-1.log &
####### use family 1 as the unseen family #######
mkdir -p logs/drebin_new_1/ && \
nohup python -u main.py \
--data drebin_new_1 \
--newfamily-label 1 \
-c mlp \
--mlp-retrain 0 \
--mlp-hidden 100-30 \
--mlp-lr 0.001 \
--mlp-batch-size 32 \
--mlp-epochs 50 \
--mlp-dropout 0.2 \
--cae-hidden 512-128-32 \
--cae-lr 0.0001 \
--cae-batch-size 64 \
--cae-lambda-1 1e-1 \
--similar-ratio 0.25 \
--margin 10.0 \
--display-interval 10 \
--mad-threshold 3.5 \
> logs/drebin_new_1/mlp_$(date "+%m.%d-%H.%M.%S")_cae_lambda_1e-1.log &
####### use family 0 as the unseen family #######
mkdir -p logs/drebin_new_0/ && \
nohup python -u main.py \
--data drebin_new_0 \
--newfamily-label 0 \
-c mlp \
--mlp-retrain 0 \
--mlp-hidden 100-30 \
--mlp-lr 0.001 \
--mlp-batch-size 32 \
--mlp-epochs 50 \
--mlp-dropout 0.2 \
--cae-hidden 512-128-32 \
--cae-lr 0.0001 \
--cae-batch-size 64 \
--cae-lambda-1 1e-1 \
--similar-ratio 0.25 \
--margin 10.0 \
--display-interval 10 \
--mad-threshold 3.5 \
> logs/drebin_new_0/mlp_$(date "+%m.%d-%H.%M.%S")_cae_lambda_1e-1.log &