-
Notifications
You must be signed in to change notification settings - Fork 2
/
run-all-ibk.sh
executable file
·44 lines (35 loc) · 1.17 KB
/
run-all-ibk.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
#!/bin/bash
#
set -e
. build-params.sh none
# Get time as a UNIX timestamp (seconds elapsed since Jan 1, 1970 0:00 UTC)
T="$(date +%s)"
rm -f $weka_out/run-all-ibk-*.out
alloutlog=$weka_out/run-all-ibk-$$.out
echo "" > $alloutlog
nneighbors=(1 5 10 15 20 25 30 35 40 )
windowSizes=( 0 1 5 10 15 20 25 30 50 )
weighting=( '-' '-I' '-F' )
for nn in "${nneighbors[@]}"
do
for ws in "${windowSizes[@]}"
do
if [ $nn -gt 1 ] ;
then
for w in "${weighting[@]}"
do
echo "Running ./run-ibk.sh $1 $nn $ws $w $1_ibk_nn${nn}_ws${ws}_w${w}.out"
echo "Running ./run-ibk.sh $1 $nn $ws $w $1_ibk_nn${nn}_ws${ws}_w${w}.out" >> $alloutlog
./run-ibk.sh $1 $nn $ws $w $1_ibk_nn${nn}_ws${ws}_w${w}.out
done
else
echo "Running ./run-ibk.sh $1 $nn $ws $w $1_ibk_nn${nn}_ws${ws}_w.out"
echo "Running ./run-ibk.sh $1 $nn $ws $w $1_ibk_nn${nn}_ws${ws}_w.out" >> $alloutlog
./run-ibk.sh $1 $nn $ws - $1_ibk_nn${nn}_ws${ws}_w.out
fi
done
done
# Extract and process the data to generate CSV files with algorithm statistics
. extractAndProcessIBk.sh $1
T="$(($(date +%s)-T))"
echo "Total Elapsed Time (seconds): ${T}" >> $alloutlog