Fork me on GitHub

This documentation is for scikit-learn version 0.18.dev0Other versions

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

sklearn.svm.libsvm.predict

sklearn.svm.libsvm.predict()

Predict target values of X given a model (low-level method)

Parameters:

X: array-like, dtype=float, size=[n_samples, n_features] :

svm_type : {0, 1, 2, 3, 4}

Type of SVM: C SVC, nu SVC, one class, epsilon SVR, nu SVR

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

Type of kernel.

degree : int

Degree of the polynomial kernel.

gamma : float

Gamma parameter in RBF kernel.

coef0 : float

Independent parameter in poly/sigmoid kernel.

Returns:

dec_values : array

predicted values.

Previous