Enum linfa_kernel::KernelType
source · pub enum KernelType {
Dense,
Sparse(usize),
}
Expand description
Kernel representation, can be either dense or sparse
Variants§
Dense
Sparse(usize)
A sparse kernel requires to define a number of neighbours between 1 and the total number of samples in input minus one.
Trait Implementations§
source§impl Clone for KernelType
impl Clone for KernelType
source§fn clone(&self) -> KernelType
fn clone(&self) -> KernelType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KernelType
impl Debug for KernelType
source§impl Hash for KernelType
impl Hash for KernelType
source§impl PartialEq<KernelType> for KernelType
impl PartialEq<KernelType> for KernelType
source§fn eq(&self, other: &KernelType) -> bool
fn eq(&self, other: &KernelType) -> bool
impl Eq for KernelType
impl StructuralEq for KernelType
impl StructuralPartialEq for KernelType
Auto Trait Implementations§
impl RefUnwindSafe for KernelType
impl Send for KernelType
impl Sync for KernelType
impl Unpin for KernelType
impl UnwindSafe for KernelType
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.