-
Notifications
You must be signed in to change notification settings - Fork 12
/
run_dl_on_selected_bandwidth.sh
executable file
·38 lines (29 loc) · 1.16 KB
/
run_dl_on_selected_bandwidth.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
#!/bin/bash
path_lists=$1
path_models=$2
path_acc=$3
# list of the scenarii
declare -a tagmaps=('executable_classification'
'novelty_classification'
'packer_identification'
'virtualization_identification'
'family_classification'
'obfuscation_classification'
'type_classification')
declare -a MLP_bds=('24' '16' '28' '20' '28' '28' '28')
declare -a CNN_bds=('24' '24' '20' '24' '28' '24' '28')
# number of tagmaps
nb_of_tagmaps=${#tagmaps[@]}
for (( i=0; i<${nb_of_tagmaps}; i++ ));
do
echo "Computing MLP, tagmap: ${tagmaps[$i]}"
python3 dl_analysis/evaluate.py --band ${MLP_bds[$i]} --list ${path_lists}/extracted_bd_files_lists_tagmaps=${tagmaps[$i]}.npy\
--acc ${path_acc}\
--model ${path_models}/MLP/${tagmaps[$i]}.h5
done
for (( i=0; i<${nb_of_tagmaps}; i++ ));
do
echo "Computing CNN, tagmap: ${tagmaps[$i]}"
python3 dl_analysis/evaluate.py --band ${CNN_bds[$i]} --list ${path_lists}/extracted_bd_files_lists_tagmaps=${tagmaps[$i]}.npy\
--acc ${path_acc} --model ${path_models}/CNN/${tagmaps[$i]}.h5
done