SVM Types
分类
C_SVC=100
:
C-Support Vector Classification. n-class classification (n ≥ \geq ≥ 2), allows imperfect separation of classes with penalty multiplier C for outliers.
NU_SVC=101
:
ν \nu ν-Support Vector Classification. n-class classification with possible imperfect separation. Parameter ν \nu ν (in the range 0…1, the larger the value, the smoother the decision boundary) is used instead of C.
单类界限
ONE_CLASS=102
:
Distribution Estimation (One-class %SVM). All the training data are from the same class, %SVM builds a boundary that separates the class from the rest of the feature space.
回归
EPS_SVR=103
:
ϵ \epsilon ϵ-Support Vector Regression. The distance between feature vectors from the training set and the fitting hyper-plane must be less than p. For outliers the penalty multiplier C is used.
NU_SVR=104
:
ν \nu ν-Support Vector Regression. ν \nu ν is used instead of p.
SVM KernelType
CUSTOM=-1
:
Returned by SVM::getKernelType
in case when custom kernel has been set
LINEAR=0
:
Linear kernel. No mapping is done, linear discrimination (or regression) is done in the original feature space. It is the fastest option. K ( x i , x j ) = x i T x j K(x_i, x_j) = x_i^T x_j K(xi,xj)=xiTxj.
POLY=1
:
Polynomial kernel: K ( x i , x j ) = ( γ x i T x j + c o e f 0 ) d e g