-
Notifications
You must be signed in to change notification settings - Fork 3
/
run_example.sh
32 lines (27 loc) · 1.1 KB
/
run_example.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
# Author Andres L. Suarez-Cetrulo (@cetrulin)
# WEKA and MOA used versions are the latest src packages available in March 2012.
#!/bin/bash
EXTRAPATH="./moa/classes:./libsvm.jar:./weka/classes"
RESULTPATH="/Users/user_example/Workspace/WEKA&MOA/data"
WSIZE=2500
PROBLEM="HIGGS"
TSs=(200000)
neighbours=(3 5 7)
modes=(1 0)
IGNGSVM='igngsvm.IGNGSVM'
ALGORITHM=${IGNGSVM}
ALGOTOK="IGNGSVM"
for mode in "${modes[@]}";
do for neighbour in "${neighbours[@]}";
do for TS in "${TSs[@]}";
do java -cp moa.jar:weka.jar:$EXTRAPATH -javaagent:sizeofag.jar moa.DoTask \
"EvaluateInterleavedTestThenTrain \
-l (igngsvm.IGNGSVM -t ${TS} -e ${mode} -Q 0.05 -n ${neighbour} -b (weka.classifiers.functions.LibSVM -S 0 -K 0 -D 1 -G 0.0 -R 0.0 -N 0.5 -M 40.0 -C 8.0 -E 0.0010 -P 0.1 -model /Users/user_example/Workspace/WEKA&MOA)) \
-s (ArffFileStream -f /Users/user_example/Desktop/datasets/Higgs/HIGGS.csv -c 1) \
-e (WindowClassificationPerformanceEvaluator -w ${WSIZE}) \
-f ${TS}" \
> ${RESULTPATH}/${PROBLEM}_${ALGOTOK}_TS${TS}_vec${neighbour}_mode${mode}.txt
done
done
done
# source getresults.sh