Skip to content
Snippets Groups Projects
Commit 0f150663 authored by Lars Buitinck's avatar Lars Buitinck
Browse files

COSMIT no need for csr_matrix "cast" in coord descent

parent 6cf3040f
Branches
Tags
No related merge requests found
...@@ -116,8 +116,6 @@ class ElasticNet(LinearModel): ...@@ -116,8 +116,6 @@ class ElasticNet(LinearModel):
------- -------
array, shape = [n_samples] with the predicted real values 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, return np.ravel(safe_sparse_dot(self.sparse_coef_, X.T,
dense_output=True) + self.intercept_) dense_output=True) + self.intercept_)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment