Skip to main content

Module predict

Module predict 

Source
Expand description

Prediction functions matching the original LIBSVM.

Provides predict, predict_values, and predict_probability for all SVM types:

  • Classification (C-SVC, ν-SVC): one-vs-one voting + optional probability
  • One-class SVM: sign of decision value + optional density probability
  • Regression (ε-SVR, ν-SVR): continuous output

Functions§

predict
Predict the label/value for a single instance.
predict_probability
Predict with probability estimates.
predict_values
Compute decision values and return the predicted label/value.