8000 Make sparse svm base class ABC · pfdevilliers/scikit-learn@ee7d78c · GitHub
[go: up one dir, main page]

Skip to content

Commit ee7d78c

Browse files
committed
Make sparse svm base class ABC
1 parent f71185d commit ee7d78c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sklearn/svm/sparse/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import numpy as np
22
import scipy.sparse
3+
from abc import ABCMeta, abstractmethod
34

45
from ..base import BaseLibSVM
56

67

78
class SparseBaseLibSVM(BaseLibSVM):
9+
__metaclass__ = ABCMeta
10+
11+
@abstractmethod
812
def __init__(self, impl, kernel, degree, gamma, coef0,
913
tol, C, nu, epsilon, shrinking, probability, cache_size,
1014
class_weight, verbose):

0 commit comments

Comments
 (0)
0