pub enum RvmKernel {
Linear,
Rbf {
length_scale: f64,
},
Polynomial {
coef0: f64,
degree: u32,
},
}Expand description
Kernel choice for the Rvm regressor.
Variants§
Linear
Linear kernel k(a, b) = aᵀb.
Rbf
Gaussian RBF kernel k(a, b) = exp(−‖a − b‖² / (2 ℓ²)) with length-scale ℓ.
Polynomial
Inhomogeneous polynomial kernel k(a, b) = (aᵀb + c)^d.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RvmKernel
impl RefUnwindSafe for RvmKernel
impl Send for RvmKernel
impl Sync for RvmKernel
impl Unpin for RvmKernel
impl UnsafeUnpin for RvmKernel
impl UnwindSafe for RvmKernel
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