File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3434iris .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 )
You can’t perform that action at this time.
0 commit comments