Skip to content

Commit fead9ac

Browse files
committed
COSMIT: only classes should have capitals
1 parent 31c6745 commit fead9ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sklearn/svm/tests/test_sparse.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
iris.data = sparse.csr_matrix(iris.data)
3535

3636

37-
def test_SVC():
37+
def test_svc():
3838
"""Check that sparse SVC gives the same result as SVC"""
3939

4040
clf = svm.SVC(kernel='linear').fit(X, Y)
@@ -63,7 +63,7 @@ def test_SVC():
6363
assert_array_almost_equal(clf.predict(T2), sp_clf.predict(T2))
6464

6565

66-
def test_SVC_iris():
66+
def test_svc_iris():
6767
"""Test the sparse SVC with the iris dataset"""
6868
for k in ('linear', 'poly', 'rbf'):
6969
sp_clf = svm.SVC(kernel=k).fit(iris.data, iris.target)
@@ -97,7 +97,7 @@ def test_error():
9797
assert_array_equal(clf.predict(T), true_result)
9898

9999

100-
def test_LinearSVC():
100+
def test_linearsvc():
101101
"""
102102
Similar to test_SVC
103103
"""
@@ -116,7 +116,7 @@ def test_LinearSVC():
116116
assert_array_almost_equal(clf.raw_coef_, sp_clf.raw_coef_, decimal=4)
117117

118118

119-
def test_LinearSVC_iris():
119+
def test_linearsvc_iris():
120120
"""Test the sparse LinearSVC with the iris dataset"""
121121

122122
sp_clf = svm.LinearSVC().fit(iris.data, iris.target)

0 commit comments

Comments
 (0)