Skip to main content

predict

Function predict 

Source
pub fn predict(model: &SvmModel, x: &[SvmNode]) -> f64
Expand description

Predict the label/value for a single instance.

Convenience wrapper around predict_values that allocates the decision values buffer internally. Matches LIBSVM’s svm_predict.