#[repr(C)]pub enum SVM_KernelTypes {
CUSTOM = -1,
LINEAR = 0,
POLY = 1,
RBF = 2,
SIGMOID = 3,
CHI2 = 4,
INTER = 5,
}
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§
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. .
POLY = 1
Polynomial kernel:
.
RBF = 2
Radial basis function (RBF), a good choice in most cases.
.
SIGMOID = 3
Sigmoid kernel: .
CHI2 = 4
Exponential Chi2 kernel, similar to the RBF kernel:
.
INTER = 5
Histogram intersection kernel. A fast kernel. .
Trait Implementations§
Source§impl Clone for SVM_KernelTypes
impl Clone for SVM_KernelTypes
Source§fn clone(&self) -> SVM_KernelTypes
fn clone(&self) -> SVM_KernelTypes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more