-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_experiments.sh
More file actions
executable file
·50 lines (42 loc) · 2.44 KB
/
run_experiments.sh
File metadata and controls
executable file
·50 lines (42 loc) · 2.44 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
echo "Running experiments for DecByzPG"
for ENV in CartPole LunarLander; do
if [[ "$ENV" == "CartPole" ]]
then
LR="5e-4"
else
LR="1e-3"
fi
for S in 0 1 2 3 4 5 6 7 8 9; do
python run.py --lr $LR --env $ENV --num_workers 1 --num_byz 0 --agreement_type none --attack_type none --aggregation_type avg --seed $S
python run.py --lr $LR --env $ENV --num_workers 5 --num_byz 0 --agreement_type none --attack_type none --aggregation_type avg --seed $S
python run.py --lr $LR --env $ENV --num_workers 13 --num_byz 0 --agreement_type none --attack_type none --aggregation_type avg --seed $S
python run.py --lr $LR --env $ENV --num_workers 13 --num_byz 0 --agreement_type mda --attack_type none --aggregation_type rfa --seed $S
done
for ATCK in random_action random_unif_-1000_1000 avg_zero; do
for S in 0 1 2 3 4 5 6 7 8 9; do
python run.py --lr $LR --env $ENV --num_workers 13 --num_byz 3 --agreement_type none --attack_type $ATCK --aggregation_type avg --seed $S
python run.py --lr $LR --env $ENV --num_workers 13 --num_byz 3 --agreement_type mda --attack_type $ATCK --aggregation_type rfa --seed $S
done
done
done
echo "Running experiments for ByzPG"
for ENV in CartPole LunarLander; do
if [[ "$ENV" == "CartPole" ]]
then
LR="5e-4"
else
LR="1e-3"
fi
for S in 0 1 2 3 4 5 6 7 8 9; do
python run.py --lr $LR --env $ENV --num_workers 1 --num_byz 0 --agreement_type centralized --attack_type none --aggregation_type avg --seed $S
python run.py --lr $LR --env $ENV --num_workers 5 --num_byz 0 --agreement_type centralized --attack_type none --aggregation_type avg --seed $S
python run.py --lr $LR --env $ENV --num_workers 13 --num_byz 0 --agreement_type centralized --attack_type none --aggregation_type avg --seed $S
python run.py --lr $LR --env $ENV --num_workers 13 --num_byz 0 --agreement_type centralized --attack_type none --aggregation_type rfa --seed $S
done
for ATCK in random_action random_unif_-1000_1000 avg_zero; do
for S in 0 1 2 3 4 5 6 7 8 9; do
python run.py --lr $LR --env $ENV --num_workers 13 --num_byz 3 --agreement_type centralized --attack_type $ATCK --aggregation_type avg --seed $S
python run.py --lr $LR --env $ENV --num_workers 13 --num_byz 3 --agreement_type centralized --attack_type $ATCK --aggregation_type rfa --seed $S
done
done
done