pub struct SigmoidKernel {
pub gamma: Option<f64>,
pub coef0: Option<f64>,
}
Expand description
Sigmoid (hyperbolic tangent) kernel
Fields§
§gamma: Option<f64>
kernel coefficient
coef0: Option<f64>
independent term in kernel function
Implementations§
Source§impl SigmoidKernel
impl SigmoidKernel
Sourcepub fn with_params(self, gamma: f64, coef0: f64) -> Self
pub fn with_params(self, gamma: f64, coef0: f64) -> Self
set parameters for kernel
use smartcore::svm::SigmoidKernel;
let knl = SigmoidKernel::default().with_params(0.7, 1.0);
Sourcepub fn with_gamma(self, gamma: f64) -> Self
pub fn with_gamma(self, gamma: f64) -> Self
set gamma parameter for kernel
use smartcore::svm::SigmoidKernel;
let knl = SigmoidKernel::default().with_gamma(0.7);
Trait Implementations§
Source§impl Clone for SigmoidKernel
impl Clone for SigmoidKernel
Source§fn clone(&self) -> SigmoidKernel
fn clone(&self) -> SigmoidKernel
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 SigmoidKernel
impl Debug for SigmoidKernel
Source§impl Default for SigmoidKernel
impl Default for SigmoidKernel
Source§impl Kernel for SigmoidKernel
impl Kernel for SigmoidKernel
Source§impl PartialEq for SigmoidKernel
impl PartialEq for SigmoidKernel
impl StructuralPartialEq for SigmoidKernel
Auto Trait Implementations§
impl Freeze for SigmoidKernel
impl RefUnwindSafe for SigmoidKernel
impl Send for SigmoidKernel
impl Sync for SigmoidKernel
impl Unpin for SigmoidKernel
impl UnwindSafe for SigmoidKernel
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