Skip to main content

sigmoid_kernel

Function sigmoid_kernel 

Source
pub fn sigmoid_kernel<T: KernelScalar>(
    m: usize,
    n: usize,
    k: usize,
    x: &[T],
    y: Option<&[T]>,
    d: &mut [T],
    gamma: T,
    coef0: T,
) -> Result<()>
Expand description

Sigmoid kernel K(x, y) = tanh(γ · x · y + c) (row-major).