From fead9ace75e783ff12d2fce8ff9bff98b522b6c9 Mon Sep 17 00:00:00 2001 From: Gael Varoquaux <gael.varoquaux@normalesup.org> Date: Sun, 6 May 2012 18:48:20 +0200 Subject: [PATCH] COSMIT: only classes should have capitals --- sklearn/svm/tests/test_sparse.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sklearn/svm/tests/test_sparse.py b/sklearn/svm/tests/test_sparse.py index c6fd3cb913..c0575587c7 100644 --- a/sklearn/svm/tests/test_sparse.py +++ b/sklearn/svm/tests/test_sparse.py @@ -34,7 +34,7 @@ iris.target = iris.target[perm] iris.data = sparse.csr_matrix(iris.data) -def test_SVC(): +def test_svc(): """Check that sparse SVC gives the same result as SVC""" clf = svm.SVC(kernel='linear').fit(X, Y) @@ -63,7 +63,7 @@ def test_SVC(): assert_array_almost_equal(clf.predict(T2), sp_clf.predict(T2)) -def test_SVC_iris(): +def test_svc_iris(): """Test the sparse SVC with the iris dataset""" for k in ('linear', 'poly', 'rbf'): sp_clf = svm.SVC(kernel=k).fit(iris.data, iris.target) @@ -97,7 +97,7 @@ def test_error(): assert_array_equal(clf.predict(T), true_result) -def test_LinearSVC(): +def test_linearsvc(): """ Similar to test_SVC """ @@ -116,7 +116,7 @@ def test_LinearSVC(): assert_array_almost_equal(clf.raw_coef_, sp_clf.raw_coef_, decimal=4) -def test_LinearSVC_iris(): +def test_linearsvc_iris(): """Test the sparse LinearSVC with the iris dataset""" sp_clf = svm.LinearSVC().fit(iris.data, iris.target) -- GitLab