This page

Citing

Please consider citing the scikit-learn.

9.1.9.1. sklearn.svm.libsvm.fit

sklearn.svm.libsvm.fit()

Train the model using libsvm (low-level method)

Parameters :

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

Y: array, dtype=float64, size=[n_samples] :

target vector

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

Type of SVM: C_SVC, NuSVC, OneClassSVM, EpsilonSVR or NuSVR respectevely.

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

Kernel to use in the model: linear, polynomial, RBF, sigmoid or precomputed.

degree : int32

Degree of the polynomial kernel (only relevant if kernel is set to polynomial)

gamma : float64

Gamma parameter in RBF kernel (only relevant if kernel is set to RBF)

coef0 : float64

Independent parameter in poly/sigmoid kernel.

tol : float64

Stopping criteria.

C : float64

C parameter in C-Support Vector Classification

nu : float64

cache_size : float64