Enum linfa_kernel::KernelMethod [−][src]
pub enum KernelMethod<F> {
Gaussian(F),
Linear,
Polynomial(F, F),
}
Expand description
The inner product definition used by a kernel.
There are three methods available:
- Gaussian(eps):
d(x, x') = exp(-norm(x - x')/eps)
- Linear:
d(x, x') = <x, x'>
- Polynomial(constant, degree):
d(x, x') = (<x, x'> + costant)^(degree)
Variants
Gaussian(eps): exp(-norm(x - x’)/eps)
Euclidean inner product
Polynomial(constant, degree): (<x, x'> + costant)^(degree)
Implementations
Trait Implementations
Auto Trait Implementations
impl<F> RefUnwindSafe for KernelMethod<F> where
F: RefUnwindSafe,
impl<F> Send for KernelMethod<F> where
F: Send,
impl<F> Sync for KernelMethod<F> where
F: Sync,
impl<F> Unpin for KernelMethod<F> where
F: Unpin,
impl<F> UnwindSafe for KernelMethod<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more