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 sklearn.svm.predict for a complete list of parameters.

Parameters
Xarray-like, dtype=float
kernel{‘linear’, ‘rbf’, ‘poly’, ‘sigmoid’, ‘precomputed’}
Returns
dec_valuesarray

predicted values.