This documentation is for scikit-learn version 0.10Other versions

Citing

If you use the software, please consider citing scikit-learn.

This page

8.24.3.4. sklearn.svm.libsvm.predict_proba

sklearn.svm.libsvm.predict_proba()

Predict probabilities

svm_model stores all parameters needed to predict a given value.

For speed, all real work is done at the C level in function copy_predict (libsvm_helper.c).

We have to reconstruct model and parameters to make sure we stay in sync with the python object.

See scikits.learn.svm.predict for a complete list of parameters.

Parameters :

X: array-like, dtype=float :

Y: array :

target vector

kernel : {‘linear’, ‘rbf’, ‘poly’, ‘sigmoid’, ‘precomputed’}

Returns :

dec_values : array

predicted values.