diff --git a/sklearn/linear_model/sparse/coordinate_descent.py b/sklearn/linear_model/sparse/coordinate_descent.py index 634b9036549c9c2141cac82d8465c36579ea5cce..c33ee3d6ccf8634e585709f617faa656211ca09e 100644 --- a/sklearn/linear_model/sparse/coordinate_descent.py +++ b/sklearn/linear_model/sparse/coordinate_descent.py @@ -116,8 +116,6 @@ class ElasticNet(LinearModel): ------- array, shape = [n_samples] with the predicted real values """ - if not sp.issparse(X): - X = sp.csr_matrix(X) return np.ravel(safe_sparse_dot(self.sparse_coef_, X.T, dense_output=True) + self.intercept_)