-
Notifications
You must be signed in to change notification settings - Fork 0
/
xaupe.sh
executable file
·77 lines (64 loc) · 1.9 KB
/
xaupe.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
73
74
75
76
77
#!/bin/bash
# Script to run all the experiment
# ./aupe.sh 0 3 10
echo "[Experiments : $@]"
nohup echo "[Experiments : $@]"
# $1 : expe to begin with (threshold): defaut expe 0
# $2 : give the number of expe to run: default 5
# $3 : protocol strategy
# $4 : merge strategy
# $5 : Expe at wich we end (limit): default no limit
# $6 : number of rounds for all my expe: default 400
thrshold="${1:-0}"
limit="${2:-10000}"
sup="${3:-30}"
batch_max=1
round=500
force=10
N=10000 #10000
if [ $N -eq 1000 ]; then
v=100
else
v=160
fi
sm=100
#f_values=( 0.08 0.10 ) #0.12 0.14 0.16 0.18 0.20 0.22 0.24 0.26 0.28 0.30 0.32 0.34 0.36 0.38 0.40 0.42 0.44 0.46 0.48 0.50)
echo $N $v $sm $sup $round
echo "DATE: $(date)"
echo "DATE: $(date)" > nohup.out
expe=0
r=1
count=0
for strat in 0 1 2 3 4
do
for k in 0 1
do
for f in 0.08 0.10 0.12 0.14 0.16 0.18 0.20 0.22 0.24 0.26 0.28 0.30 0.32 0.34 0.36 0.38 0.40 0.42 0.44 0.46 0.48 0.50
do
for a in 1 #$( eval echo {1..$(($A))}) # run each experiment many times
do
if (( expe >= thrshold && expe < limit ))
then
echo "Expe: $expe"
echo "$PWD"
nohup ./merge.sh $expe $N $v $f $force $sm $round $strat $k $r $sup &
if [ $? -eq 0 ]; then
echo "Expe succeeded"
let count=count+1
else
echo "Expe failed"
fi
fi
#echo "*****************NEXT*****************"
result=$(($count % $batch_max))
if (( result == 0 ))
then
count=0
wait
fi
let expe=expe+1
done
done
done
done
echo "*****************END($expe)*****************"