pub enum KernelInit {
Linear,
Polynomial {
gamma: Option<f64>,
coef0: Option<f64>,
degree: Option<usize>,
},
Rbf {
gamma: Option<f64>,
},
Sigmoid {
gamma: Option<f64>,
coef0: Option<f64>,
},
}Expand description
The kernel initializer.
Variants§
Trait Implementations§
Source§impl Clone for KernelInit
impl Clone for KernelInit
Source§fn clone(&self) -> KernelInit
fn clone(&self) -> KernelInit
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for KernelInit
impl RefUnwindSafe for KernelInit
impl Send for KernelInit
impl Sync for KernelInit
impl Unpin for KernelInit
impl UnwindSafe for KernelInit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more