-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
68 lines (51 loc) · 1.39 KB
/
run.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
#!/usr/bin/env bash
set -x
epoch=50
nb_segment=200
exp_id=roundrobin
screen -dmS roundrobin bash -c "epoch=$epoch; exp_id=$exp_id; bash << 'EOF'
for i in {1..$epoch}
do
python3 mininet/topo.py --exp_id \"$exp_id\"-RR --scheduler roundrobin --nb_segment \"$nb_segment\"
done
EOF
"
epoch=50
nb_segment=200
exp_id=minrtt
screen -dmS minrtt bash -c "epoch=$epoch; exp_id=$exp_id; bash << 'EOF'
for i in {1..$epoch}
do
python3 mininet/topo.py --exp_id \"$exp_id\"-minRTT --scheduler minrtt --nb_segment \"$nb_segment\"
done
EOF
"
epoch=50
nb_segment=200
exp_id=lints
screen -dmS lints bash -c "epoch=$epoch; exp_id=$exp_id; bash << 'EOF'
declare -a arr=(\"0.2\" \"0.4\" \"0.6\" \"0.8\" \"1.0\")
for alpha in \"\${arr[@]}\"
do
for i in {1..$epoch}
do
python3 mininet/topo.py --scheduler contextual_bandit --exp_id \"$exp_id\"-LinTS-alpha-\"\$alpha\" --lints_alpha \"\$alpha\" --algorithm LinTS --nb_segment \"$nb_segment\"
done
done
EOF
"
# linucb
epoch=50
nb_segment=200
exp_id=linucb
screen -dmS linucb bash -c "epoch=$epoch; exp_id=$exp_id; bash << 'EOF'
declare -a arr=(\"0.2\" \"0.4\" \"0.6\" \"0.8\" \"1.0\")
for alpha in \"\${arr[@]}\"
do
for i in {1..$epoch}
do
python3 mininet/topo.py --scheduler contextual_bandit --exp_id \"$exp_id\"-LinUCB-alpha-\"\$alpha\" --linucb_alpha \"\$alpha\" --algorithm LinUCB --nb_segment \"$nb_segment\"
done
done
EOF
"