-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperform_multiple_tests.sh
executable file
·72 lines (65 loc) · 2.98 KB
/
perform_multiple_tests.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
FINISHED=false
waitfortest()
{
while [ $FINISHED != "true" ]
do
FINISHED=$(curl -s http://95.179.192.253:8002/ | jq '. | {finished_training}.finished_training')
echo "Still not finished..."
sleep 30
done
echo "Finished training"
echo "Waiting 3 mins"
sleep 3m
}
#################################################################################
#echo "Doing non-iid 1 frame 5 clients 200 CR"
#DELETE_OLD_LOGS=1 RESTART_SCREEN=1 SPLIT_TYPE=non-iid N_FRAMES=1 COMM_ROUNDS=200 ./initialize.sh
#waitfortest
#echo "Compressing results"
#tar -czvf 5_clients_non-iid_1_frame_200_cr.tar.gz logs/*.log
#################################################################################
################################################################################
echo "Doing iid 7 frame 5 clients 200 CR"
DELETE_OLD_LOGS=1 RESTART_SCREEN=1 SPLIT_TYPE=iid N_FRAMES=7 COMM_ROUNDS=200 ./initialize.sh
waitfortest
echo "Compressing results"
tar -czvf 5_clients_iid_7_frames_200_cr.tar.gz logs/*.log
################################################################################
###############################################################################
echo "Doing iid 1 frame 5 clients 200 CR"
DELETE_OLD_LOGS=1 RESTART_SCREEN=1 SPLIT_TYPE=iid N_FRAMES=1 COMM_ROUNDS=200 ./initialize.sh
waitfortest
echo "Compressing results"
tar -czvf 5_clients_iid_1_frame_200_cr.tar.gz logs/*.log
###############################################################################
###############################################################################
#echo "Doing iid 7 frame 1 clients"
##DELETE_OLD_LOGS=1 RESTART_SCREEN=1 SPLIT_TYPE=iid N_FRAMES=7 ./initialize.sh
#waitfortest
#echo "Compressing results"
#tar -czvf 1_clients_iid_7_frames.tar.gz logs/*.log
################################################################################
################################################################################
#echo "Doing non-iid 7 frame 1 clients"
#DELETE_OLD_LOGS=1 RESTART_SCREEN=1 SPLIT_TYPE=non-iid N_FRAMES=7 ./initialize.sh
#waitfortest
#echo "Compressing results"
#tar -czvf 1_clients_non-iid_7_frames.tar.gz logs/*.log
################################################################################
#
################################################################################
#echo "Doing no split 7 frame 1 clients"
#DELETE_OLD_LOGS=1 RESTART_SCREEN=1 SPLIT_TYPE=no_split N_FRAMES=7 ./initialize.sh
#waitfortest
#echo "Compressing results"
#tar -czvf 1_clients_no_split_7_frames.tar.gz logs/*.log
################################################################################
#
################################################################################
#echo "Doing no split 1 frame 1 clients"
#DELETE_OLD_LOGS=1 RESTART_SCREEN=1 SPLIT_TYPE=no_split N_FRAMES=1 ./initialize.sh
#waitfortest
#echo "Compressing results"
#tar -czvf 1_clients_no_split_1_frames.tar.gz logs/*.log
################################################################################
echo "DONE"