-
Notifications
You must be signed in to change notification settings - Fork 0
/
adz.sh
30 lines (24 loc) · 789 Bytes
/
adz.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
#!/bin/bash
# Common parameters
PYTHON_CMD="python main.py"
COMMON_PARAMS="-N 100 --attacker ADZ --ADZ_attack"
P_VALUES=(10 50 100)
# Function to run experiments for a given configuration
run_experiments() {
local run_tag=$1
local detection=$2
local classifier=$3
for p in "${P_VALUES[@]}"; do
echo "Running experiment: $run_tag with P=$p"
$PYTHON_CMD -R "$run_tag" $COMMON_PARAMS \
--detection "$detection" \
--classifier "$classifier" \
-P "$p"
done
}
# Run experiments for different configurations
run_experiments "drebin-SVM-ADZ" "drebin" "svm"
# Mamadroid-RF experiments
run_experiments "mamadroid-RF-ADZ" "mamadroid" "rf"
# Mamadroid-3NN experiments
run_experiments "mamadroid-3nn-ADZ" "mamadroid" "3nn"