Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

svm(3) [php man page]

SVM(3)									 1								    SVM(3)

The SVM class

INTRODUCTION
CLASS SYNOPSIS
SVM SVM Constants o const integer$SVM::C_SVC0 o const integer$SVM::NU_SVC1 o const integer$SVM::ONE_CLASS2 o const integer$SVM::EPSILON_SVR3 o const integer$SVM::NU_SVR4 o const integer$SVM::KERNEL_LINEAR0 o const integer$SVM::KERNEL_POLY1 o const integer$SVM::KERNEL_RBF2 o const integer$SVM::KERNEL_SIGMOID3 o const integer$SVM::KERNEL_PRECOMPUTED4 o const integer$SVM::OPT_TYPE101 o const integer$SVM::OPT_KERNEL_TYPE102 o const integer$SVM::OPT_DEGREE103 o const integer$SVM::OPT_SHRINKING104 o const integer$SVM::OPT_PROPABILITY105 o const integer$SVM::OPT_GAMMA201 o const integer$SVM::OPT_NU202 o const integer$SVM::OPT_EPS203 o const integer$SVM::OPT_P204 o const integer$SVM::OPT_COEF_ZERO205 o const integer$SVM::OPT_C206 o const integer$SVM::OPT_CACHE_SIZE207 Methods o public SVM::__construct (void ) o public float svm::crossvalidate (array $problem, int $number_of_folds) o public array SVM::getOptions (void ) o public bool SVM::setOptions (array $params) o public SVMModel svm::train (array $problem, [array $weights]) PREDEFINED CONSTANTS
SVM CONSTANTS
o SVM::C_SVC -The basic C_SVC SVM type. The default, and a good starting point o SVM::NU_SVC -The NU_SVC type uses a different, more flexible, error weighting o SVM::ONE_CLASS -One class SVM type. Train just on a single class, using outliers as negative examples o SVM::EPSILON_SVR -A SVM type for regression (predicting a value rather than just a class) o SVM::NU_SVR -A NU style SVM regression type o SVM::KERNEL_LINEAR -A very simple kernel, can work well on large document classification problems o SVM::KERNEL_POLY -A polynomial kernel o SVM::KERNEL_RBF -The common Gaussian RBD kernel. Handles non-linear problems well and is a good default for classification o SVM::KERNEL_SIGMOID -A kernel based on the sigmoid function. Using this makes the SVM very similar to a two layer sigmoid based neural network o SVM::KERNEL_PRECOMPUTED -A precomputed kernel - currently unsupported. o SVM::OPT_TYPE -The options key for the SVM type o SVM::OPT_KERNEL_TYPE -The options key for the kernel type o SVM::OPT_DEGREE - o SVM::OPT_SHRINKING -Training parameter, boolean, for whether to use the shrinking heuristics o SVM::OPT_PROBABILITY -Training parameter, boolean, for whether to collect and use probability estimates o SVM::OPT_GAMMA -Algorithm parameter for Poly, RBF and Sigmoid kernel types. o SVM::OPT_NU -The option key for the nu parameter, only used in the NU_ SVM types o SVM::OPT_EPS -The option key for the Epsilon parameter, used in epsilon regression o SVM::OPT_P -Training parameter used by Episilon SVR regression o SVM::OPT_COEF_ZERO -Algorithm parameter for poly and sigmoid kernels o SVM::OPT_C -The option for the cost parameter that controls tradeoff between errors and generality - effectively the penalty for misclassifying training examples. o SVM::OPT_CACHE_SIZE -Memory cache size, in MB PHP Documentation Group SVM(3)

Check Out this Related Man Page

SVMOCAS(1)						      General Commands Manual							SVMOCAS(1)

NAME
svmocas - train a binary linear SVM classifier SYNOPSIS
svmocas [options] example_file model_file DESCRIPTION
svmocas is a program that trains a binary linear SVM classifier using the Optimized Cutting Plane Algorithm for Support Vector Machines (OCAS) and produces a model file. example_file is a file with training examples in SVM^light format, and model_file is the file in which to store the learned linear rule f(x)=w'*x+w0. model_file contains d lines, where d is the number of data dimensions. The first n lines are coordinates of w and the last line is w0. OPTIONS
A summary of options is included below. General options: -h Show summary of options. -v (0|1) Set the verbosity level (default: 1) Learning options: -c float Regularization constant C. (default: 1) -C constants_file If specified, each example has a different regularization constant, taken from the text file constants_file. Each line of the text file must contain a single constant (positive double) for the corresponding example. If -C is used, then the -c option is ignored. -b (0|1) Value of the L2-bias feature. A value of 0 implies not having bias. (default: 0) -n integer Use only the first integer examples for training. By default, integer equals the number of examples in example_file. Optimization options: -m (0|1) Solver to be used: 0 ... standard cutting plane (equivalent to BMRM, SVM^perf) 1 ... OCAS (default) -s integer Cache size for cutting planes. (default: 2000) -p integer Number of threads. (default: 1) Stopping conditions: -a float Absolute tolerance TolAbs: halt if QP-QD <= TolAbs. (default: 0) -r float Relative tolerance TolAbs: halt if QP-QD <= abs(QP)*TolRel. (default: 0.01) -q float Desired objective value QPValue: halt is QP <= QPValue. (default: 0) -t float Halts if the solver time (loading time is not counted) exceeds the time given in seconds. (default: infinity) EXAMPLES
Train the binary SVM classifier from riply_trn.light, with the regularization constant C=10, bias switched on, verbosity switched off, and save model to svmocas.model: svmocas -c 10 -b 1 -v 0 riply_trn.light svmocas.model Compute the testing error of the classifier stored in svmocas.model with linclass(1) using testing examples from riply_tst.light and save the predicted labels to riply_tst.pred: linclass -e -o riply_tst.pred riply_tst.light svmocas.model SEE ALSO
msvmocas(1), linclass(1). AUTHORS
svmocas was written by Vojtech Franc <xfrancv@cmp.felk.cvut.cz> and Soeren Sonnenburg <Soeren.Sonnenburg@tu-berlin.de>. This manual page was written by Christian Kastner <debian@kvr.at>, for the Debian project (and may be used by others). June 16, 2010 SVMOCAS(1)
Man Page