MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / HelpInfo_svmtrain

Function HelpInfo_svmtrain

src/thundersvm/cmdparser.cpp:15–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include <omp.h>
14
15void HelpInfo_svmtrain() {
16 LOG(INFO) <<
17 "Usage (same as LibSVM): thundersvm [options] training_set_file [model_file]\n"
18 "options:\n"
19 "-s svm_type: set type of SVM (default 0)\n"
20 " 0 -- C-SVC (multi-class classification)\n"
21 " 1 -- nu-SVC (multi-class classification)\n"
22 " 2 -- one-class SVM\n"
23 " 3 -- epsilon-SVR (regression)\n"
24 " 4 -- nu-SVR (regression)\n"
25 "-t kernel_type: set type of kernel function (default 2)\n"
26 " 0 -- linear: u'*v\n"
27 " 1 -- polynomial: (gamma*u'*v + coef0)^degree\n"
28 " 2 -- radial basis function: exp(-gamma*|u-v|^2)\n"
29 " 3 -- sigmoid: tanh(gamma*u'*v + coef0)\n"
30// " 4 -- precomputed kernel (kernel values in training_set_file)\n"
31 "-d degree: set degree in kernel function (default 3)\n"
32 "-g gamma: set gamma in kernel function (default 1/num_features)\n"
33 "-r coef0: set coef0 in kernel function (default 0)\n"
34 "-c cost: set the parameter C of C-SVC, epsilon-SVR, and nu-SVR (default 1)\n"
35 "-n nu: set the parameter nu of nu-SVC, one-class SVM, and nu-SVR (default 0.5)\n"
36 "-p epsilon: set the epsilon in loss function of epsilon-SVR (default 0.1)\n"
37 "-m memory size: constrain the maximum memory size (MB) that thundersvm uses (default 8192)\n"
38 "-e epsilon: set tolerance of termination criterion (default 0.001)\n"
39 "-b probability_estimates: whether to train a SVC or SVR model for probability estimates, 0 or 1 (default 0)\n"
40 "-wi weight: set the parameter C of class i to weight*C, for C-SVC (default 1)\n"
41 "-v n: n-fold cross validation mode\n"
42 "-u n: specify which gpu to use (default 0)\n"
43 "-o n: set the number of cpu cores to use, -1 for maximum(default -1)\n"
44 "-q: quiet mode";
45 exit(1);
46}
47
48void HelpInfo_svmpredict() {
49 LOG(INFO) <<

Callers 2

parse_command_lineMethod · 0.85
parse_pythonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected