[−][src]Enum opencv::ml::SVM_KernelTypes
%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
impl Clone for SVM_KernelTypes
[src]
pub fn clone(&self) -> SVM_KernelTypes
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SVM_KernelTypes
[src]
impl Debug for SVM_KernelTypes
[src]
impl PartialEq<SVM_KernelTypes> for SVM_KernelTypes
[src]
pub fn eq(&self, other: &SVM_KernelTypes) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for SVM_KernelTypes
[src]
Auto Trait Implementations
impl RefUnwindSafe for SVM_KernelTypes
[src]
impl Send for SVM_KernelTypes
[src]
impl Sync for SVM_KernelTypes
[src]
impl Unpin for SVM_KernelTypes
[src]
impl UnwindSafe for SVM_KernelTypes
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,