The kernel type of SVM
Namespace: OpenCvSharp.CPlusPlus
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Members
Member name | Value | Description | |
---|---|---|---|
Linear | 0 | no mapping is done, linear discrimination (or regression) is done in the original feature space. It is the fastest option. d(x,y) = x•y == (x,y) [CvSVM::LINEAR] | |
Poly | 1 | polynomial kernel: d(x,y) = (gamma*(x•y)+coef0)^degree [CvSVM::POLY] | |
Rbf | 2 | radial-basis-function kernel; a good choice in most cases: d(x,y) = exp(-gamma*|x-y|^2) [CvSVM::RBF] | |
Sigmoid | 3 | sigmoid function is used as a kernel: d(x,y) = tanh(gamma*(x•y)+coef0) [CvSVM::SIGMOID] |
See Also