Skip to main content

k_function

Function k_function 

Source
pub fn k_function(x: &[SvmNode], y: &[SvmNode], param: &SvmParameter) -> f64
Expand description

Evaluate the kernel function K(x, y) for the given parameters.

This is the standalone version used during prediction. Matches LIBSVM’s Kernel::k_function.