Skip to content

Commit 617baa1

Browse files
committed
Style fix
1 parent af587ec commit 617baa1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/svm/tests/test_sparse.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def check_svm_model_equal(dense_svm, sparse_svm, X_train, y_train, X_test):
4444
X_test_dense = X_test.toarray()
4545
else:
4646
X_test_dense = X_test
47-
sparse_svm.fit(X_train, y_train)
47+
sparse_svm.fit(X_train, y_train)
4848
assert_true(sparse.issparse(sparse_svm.support_vectors_))
4949
assert_true(sparse.issparse(sparse_svm.dual_coef_))
5050
assert_array_almost_equal(dense_svm.support_vectors_,
@@ -257,6 +257,7 @@ def test_sparse_liblinear_intercept_handling():
257257
# Test that sparse liblinear honours intercept_scaling param
258258
test_svm.test_dense_liblinear_intercept_handling(svm.LinearSVC)
259259

260+
260261
def test_sparse_oneclasssvm():
261262
"""Check that sparse OneClassSVM gives the same result as dense OneClassSVM"""
262263
# many class dataset:

0 commit comments

Comments
 (0)