Struct smartcore::svm::SigmoidKernel
source · 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<SigmoidKernel> for SigmoidKernel
impl PartialEq<SigmoidKernel> for SigmoidKernel
source§fn eq(&self, other: &SigmoidKernel) -> bool
fn eq(&self, other: &SigmoidKernel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SigmoidKernel
Auto Trait Implementations§
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