-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrain_run.sh
70 lines (51 loc) · 1.84 KB
/
train_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
#!/bin/bash
#make clean
#make -j 10
if [ $1 -eq 1 ];then
echo "run real-sim"
./bin/thundersvm-train -c 100 -g 0.5 ../dataset/real-sim
./bin/thundersvm-predict ../dataset/real-sim real-sim.model real-sim.predict
rm -rf real-sim*
fi
if [ $1 -eq 2 ];then
echo "run rcv1_test.binary"
./bin/thundersvm-train -c 100 -g 0.5 ../dataset/rcv1_test.binary
./bin/thundersvm-predict ../dataset/rcv1_test.binary rcv1_test.binary.model rcv1_test.binary.predict
rm -rf rcv1_test.binary*
fi
if [ $1 -eq 3 ];then
echo "run url_combined_normalized"
./bin/thundersvm-train -c 100 -g 0.5 ../dataset/url_combined_normalized
./bin/thundersvm-predict ../dataset/url_combined_normalized url_combined_normalized.model url_combined_normalized.predict
rm -rf url_combined_normalized*
fi
if [ $1 -eq 4 ];then
echo "run epsilon_normalized"
./bin/thundersvm-train -c 0.01 -g 1 ../dataset/epsilon_normalized
#./bin/thundersvm-predict ../dataset/epsilon_normalized epsilon_normalized.model epsilon_normalized.predict
rm -rf epsilon_normalized*
fi
if [ $1 -eq 5 ];then
echo "run E2006.train"
./bin/thundersvm-train -s 3 -c 256 -g 0.125 ../dataset/E2006.train
./bin/thundersvm-predict ../dataset/E2006.train E2006.train.model E2006.train.predict
rm -rf E2006.train*
fi
if [ $1 -eq 6 ];then
echo "run mnist.scale"
./bin/thundersvm-train -c 100 -g 0.5 ../dataset/mnist.scale
./bin/thundersvm-predict ../dataset/mnist.scale mnist.scale.model mnist.scale.predict
rm -rf mnist.scale*
fi
if [ $1 -eq 7 ];then
echo "run gisette_scale"
./bin/thundersvm-train -c 100 -g 0.5 ../dataset/gisette_scale
./bin/thundersvm-predict ../dataset/gisette_scale gisette_scale.model gisette_scale.predict
rm -rf gisette_scale*
fi
if [ $1 -eq 8 ];then
echo "run ijcnn1.t"
./bin/thundersvm-train -c 100 -g 0.5 ../dataset/ijcnn1.t
./bin/thundersvm-predict ../dataset/ijcnn1.t ijcnn1.t.model ijcnn1.t.predict
rm -rf ijcnn1.t*
fi