Enum opencv::ml::SVM_KernelTypes [−][src]
#[repr(C)]
pub enum SVM_KernelTypes {
CUSTOM,
LINEAR,
POLY,
RBF,
SIGMOID,
CHI2,
INTER,
}
Expand description
%SVM kernel type
A comparison of different kernels on the following 2D test case with four classes. Four
SVM::C_SVC SVMs have been trained (one against rest) with auto_train. Evaluation on three
different kernels (SVM::CHI2, SVM::INTER, SVM::RBF). The color depicts the class with max score.
Bright means max-score > 0, dark means max-score < 0.
Variants
Returned by SVM::getKernelType in case when custom kernel has been set
Linear kernel. No mapping is done, linear discrimination (or regression) is
done in the original feature space. It is the fastest option. .
Polynomial kernel:
.
Radial basis function (RBF), a good choice in most cases.
.
Sigmoid kernel: .
Exponential Chi2 kernel, similar to the RBF kernel:
.
Histogram intersection kernel. A fast kernel. .
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SVM_KernelTypes
impl Send for SVM_KernelTypes
impl Sync for SVM_KernelTypes
impl Unpin for SVM_KernelTypes
impl UnwindSafe for SVM_KernelTypes
Blanket Implementations
Mutably borrows from an owned value. Read more