-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathrun-all.sh
More file actions
34 lines (29 loc) · 809 Bytes
/
run-all.sh
File metadata and controls
34 lines (29 loc) · 809 Bytes
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
#!/usr/bin/env bash
set -e
out_directoy="200GPU"
# full list
datasets=("mnist" "femnist" "shakespeare" "speech")
#strategies=("fedavg" "fedlesscan" "fedprox" "fednova" "scaffold" "fedscore")
strategies=("fedavg" "fedlesscan" "fedprox" "fedasync" "fedscore")
# strategies=("fedavg" "fedscore")
# datasets=("femnist" "shakespeare")
datasets=("mnist")
# strategies=("fedlesscan" "fedscore")
# strategies=("fednova" "scaffold")
for ds in "${datasets[@]}"
do
for st in "${strategies[@]}"
do
echo "$ds - $st"
if [ $st == "fedasync" ] || [ $st == "fedscore" ]
then
for ratio in 0.6 0.7 0.8 0.9;
do
./withgpu/run.sh "$ds" "$st" "$out_directoy" "$ratio" || true
done
else
./withgpu/run.sh "$ds" "$st" "$out_directoy" || true
fi
#sleep 10
done
done