This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid.sh
executable file
·55 lines (46 loc) · 1.72 KB
/
grid.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
#!/bin/bash
. ./config.pipe
gnuplot=~/usr/bin/gnuplot
svmtrain=~/usr/bin/svm-train
for mix in xy2 bte dom xy2-bte xy2-dom bte-dom xy2-bte-dom;
do
case ${mix} in
xy2)
cmin=2; cmax=18; cstep=2; gmin=8; gmax=-1; gstep=-2; cross=3;
;;
bte)
cmin=0; cmax=18; cstep=2; gmin=5; gmax=-1; gstep=-2; cross=3;
;;
dom)
cmin=4; cmax=18; cstep=2; gmin=5; gmax=-1; gstep=-2; cross=3;
;;
txt)
cmin=0; cmax=18; cstep=2; gmin=0; gmax=-6; gstep=-2; cross=3;
;;
xy2-txt)
cmin=4; cmax=10; cstep=1; gmin=-1; gmax=-6; gstep=-1; cross=5;
;;
dom-xy2-txt)
cmin=0; cmax=10; cstep=1; gmin=0; gmax=-8; gstep=-1; cross=5;
;;
*)
cmin=-5; cmax=15; cstep=2; gmin=3; gmax=-15; gstep=-2; cross=3;
;;
esac
for f in svmin/canola/$mix.allvecs.scaled.0.learn
do
basefn=$(basename ${f} .learn)
outbasefn=${basefn}.learn_c${cmin}_${cmax}_${cstep}_g${gmin}_${gmax}_${gstep}_v${cross}
OUT=$PREDICT/${outbasefn}.out
PNG=$PREDICT/${outbasefn}.png
if [[ -f $OUT ]]
then
echo "SKIP $OUT"; echo
continue
fi
touch $OUT
echo $OUT
# grid.py -log2c -2,20,2 -log2g -7,3,2 -v 5 -out viz.allvecs.scaled.0.learn_c-3_17_2_g-7_3_2_v5.out -png viz.allvecs.scaled.0.learn_c-3_17_2_g-7_3_2_v5.png -gnuplot ~/usr/bin/gnuplot -svmtrain ~/usr/bin/svm-train -m 800 -h 0 svmin/canola/viz.allvecs.scaled.0.learn
nice grid.py -log2c ${cmin},${cmax},${cstep} -log2g ${gmin},${gmax},${gstep} -v ${cross} -out ${OUT} -png ${PNG} -gnuplot ${gnuplot} -svmtrain ${svmtrain} -m 800 -h 0 ${f}
done
done