[][src]Enum opencv::ml::SVM_KernelTypes

#[repr(C)]pub enum SVM_KernelTypes {
    CUSTOM,
    LINEAR,
    POLY,
    RBF,
    SIGMOID,
    CHI2,
    INTER,
}

%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. image

Variants

CUSTOM

Returned by SVM::getKernelType in case when custom kernel has been set

LINEAR

Linear kernel. No mapping is done, linear discrimination (or regression) is done in the original feature space. It is the fastest option. inline formula.

POLY

Polynomial kernel: inline formula.

RBF

Radial basis function (RBF), a good choice in most cases. inline formula.

SIGMOID

Sigmoid kernel: inline formula.

CHI2

Exponential Chi2 kernel, similar to the RBF kernel: inline formula.

INTER

Histogram intersection kernel. A fast kernel. inline formula.

Trait Implementations

impl Clone for SVM_KernelTypes[src]

impl Copy for SVM_KernelTypes[src]

impl Debug for SVM_KernelTypes[src]

impl PartialEq<SVM_KernelTypes> for SVM_KernelTypes[src]

impl StructuralPartialEq for SVM_KernelTypes[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.