Skip to content

Commit fe20981

Browse files
btabibianagramfort
authored andcommitted
removing extra fit call and cleanup code
1 parent 02cd2fb commit fe20981

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sklearn/linear_model/tests/test_sparse_coordinate_descent.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ def test_same_multiple_output_sparse_dense():
280280
[1, 3, 6, 9, 12],
281281
[10, 11, 12, 13, 14],
282282
[11, 12, 13, 14, 15]]
283-
l.fit(X, y)
284283
ignore_warnings(l.fit)(X, y)
285284
sample = np.array([1, 2, 3, 4, 5]).reshape(1, -1)
286285
predict_dense = l.predict(sample)
@@ -295,7 +294,7 @@ def test_same_multiple_output_sparse_dense():
295294
[10, 11, 12, 13, 14],
296295
[11, 12, 13, 14, 15]]
297296
ignore_warnings(l_sp.fit)(X_sp, y_sp)
298-
299297
sample_sparse = sp.coo_matrix(sample)
300298
predict_sparse = l_sp.predict(sample_sparse)
299+
301300
assert_array_almost_equal(predict_sparse, predict_dense)

0 commit comments

Comments
 (0)