Skip to main content

polynomial_kernel

Function polynomial_kernel 

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

Polynomial kernel K(x, y) = (γ · x · y + c)^degree (row-major).