Struct rusty_machine::learning::toolkit::kernel::HyperTan
[−]
[src]
pub struct HyperTan {
pub alpha: f64,
pub c: f64,
}The Hyperbolic Tangent Kernel.
ker(x,y) = tanh(αxTy + c)
Fields
alpha: f64
The scaling of the inner product.
c: f64
The constant to add to the inner product.
Methods
impl HyperTan[src]
Trait Implementations
impl Clone for HyperTan[src]
fn clone(&self) -> HyperTan
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Copy for HyperTan[src]
impl Debug for HyperTan[src]
impl Default for HyperTan[src]
Constructs a default Hyperbolic Tangent Kernel.
The defaults are:
- alpha = 1
- c = 0