-
Notifications
You must be signed in to change notification settings - Fork 2
/
run_cifar100.sh
28 lines (26 loc) · 3.2 KB
/
run_cifar100.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
data_partition="noniid-skew"
client=10
iternum=400
skew_class=20
alpha=0.8
beta=0.1
# Baselines
python local_training.py --gpu "7" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta
python fedavg.py --gpu "7" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta
python fedavg_ft.py --gpu "7" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta
python fedprox.py --gpu "5" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta
python fedprox_ft.py --gpu "5" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta
python cfl.py --gpu "4" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta
python perfedavg.py --gpu "5" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta
python pfedme.py --gpu "7" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta
python fedamp.py --gpu "5" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta
python fedrep.py --gpu "5" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_rep_iterations $iternum --beta $beta
python ditto.py --gpu "4" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta
python pfedhn.py --gpu "7" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta
python fedrod.py --gpu "7" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta
python knn_per.py --gpu "7" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta
# Ours
python pfedgraph_cosine.py --gpu "4" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta --alpha $alpha --difference_measure "all"
python pfedgraph_approx.py --gpu "4" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta --alpha $alpha --difference_measure "all"
python pfedgraph_cosine.py --gpu "5" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta --alpha $alpha --difference_measure "fc"
python pfedgraph_approx.py --gpu "5" --dataset cifar100 --skew_class $skew_class --partition $data_partition --n_parties $client --num_local_iterations $iternum --beta $beta --alpha $alpha --difference_measure "fc"