Skip to content
Snippets Groups Projects
Commit 1f423882 authored by Fabian Pedregosa's avatar Fabian Pedregosa
Browse files

Do not support precomputed kernels in sparse matrices.

parent 2c3d9e2f
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ from .. import _liblinear ...@@ -10,7 +10,7 @@ from .. import _liblinear
class SparseBaseLibSVM(BaseLibSVM): class SparseBaseLibSVM(BaseLibSVM):
_kernel_types = ['linear', 'poly', 'rbf', 'sigmoid', 'precomputed'] _kernel_types = ['linear', 'poly', 'rbf', 'sigmoid']
_svm_types = ['c_svc', 'nu_svc', 'one_class', 'epsilon_svr', 'nu_svr'] _svm_types = ['c_svc', 'nu_svc', 'one_class', 'epsilon_svr', 'nu_svr']
def __init__(self, impl, kernel, degree, gamma, coef0, cache_size, def __init__(self, impl, kernel, degree, gamma, coef0, cache_size,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment