-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathrun_simulated_averaging.sh
executable file
·54 lines (53 loc) · 1.25 KB
/
run_simulated_averaging.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
# southwest attack
python simulated_averaging.py --fraction 0.1 \
--lr 0.02 \
--gamma 0.998 \
--num_nets 200 \
--fl_round 500 \
--part_nets_per_round 10 \
--local_train_period 2 \
--adversarial_local_training_period 2 \
--dataset cifar10 \
--model vgg16 \
--fl_mode fixed-freq \
--attacker_pool_size 100 \
--defense_method no-defense \
--attack_method blackbox \
--attack_case edge-case \
--model_replacement False \
--project_frequency 10 \
--stddev 0.025 \
--eps 2 \
--adv_lr 0.02 \
--prox_attack False \
--poison_type southwest \
--norm_bound 2 \
--device=cuda:1 \
> southwest_vgg16_blackbox_no_defense_log 2>&1
# emnist Ardis attack
#python simulated_averaging.py --fraction 0.1 \
#--lr 0.1 \
#--batch-size 512 \
#--gamma 0.998 \
#--num_nets 3383 \
#--fl_round 500 \
#--part_nets_per_round 30 \
#--local_train_period 5 \
#--adversarial_local_training_period 5 \
#--dataset emnist \
#--model lenet \
#--fl_mode fixed-freq \
#--attacker_pool_size 100 \
#--defense_method no-defense \
#--stddev 0.025 \
#--attack_method blackbox \
#--attack_case edge-case \
#--model_replacement False \
#--project_frequency 10 \
#--eps 1 \
#--adv_lr 0.1 \
#--prox_attack False \
#--poison_type ardis \
#--norm_bound 1.5 \
#--device=cuda \
#> ardis_blackbox_good_vs_bad_m_0.5_attack_log 2>&1