-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·28 lines (21 loc) · 853 Bytes
/
test.sh
File metadata and controls
executable file
·28 lines (21 loc) · 853 Bytes
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
#!/usr/bin/env bash
set -x # DEBUG
set -u # strict
NPROCS=`getconf _NPROCESSORS_ONLN`
make
# train a SVR with a linear kernel;
# C=0.005 is close to optimal for this dataset; 5xCV
./svmwrap -q --pairs -np ${NPROCS} --NxCV 5 -c 0.005 \
--feats 5183 -i data/CHEMBL2842_std.AP
# train a SVR with RBF kernel
# (default e, good C and gamma are known); 5xCV
./svmwrap -q --pairs -np ${NPROCS} --NxCV 5 -c 10 -g 0.0005 --kernel RBF \
--feats 5183 -i data/CHEMBL2842_std.AP
# train a SVR with the sigmoid kernel
./svmwrap -q --pairs -np ${NPROCS} --NxCV 5 \
-c 50 -g '2e-05' -r 0.0 --kernel Sig \
--feats 5183 -i data/CHEMBL2842_std.AP
# train a SVR with the polynomial kernel
./svmwrap -q --pairs -np ${NPROCS} --NxCV 5 \
-c 0.05 -g 0.002 --kernel Pol \
--feats 5183 -i data/CHEMBL2842_std.AP