Skip to main content

Module predict

Module predict 

Source
Expand description

Prediction functions matching the original LIBSVM.

Provides predict and predict_values for all SVM types:

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

Functions§

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