Skip to content

ENH: Make LinearRegression work with sparse - #535

Merged
GaelVaroquaux merged 1 commit into
scikit-learn:masterfrom
GaelVaroquaux:sparse_ols
Jan 6, 2012
Merged

GaelVaroquaux merged 1 commit into
scikit-learn:masterfrom
GaelVaroquaux:sparse_ols

Conversation

@GaelVaroquaux

Copy link
Copy Markdown
Member

Fixes #533

Trivial PR to make LinearRegression work with sparse data.

@ogrisel

ogrisel commented Jan 5, 2012

Copy link
Copy Markdown
Member

The docstring of fit should be updated to:

  • tell that X can be sparse
  • move the former fit-params documentation to the class docstring as they are constructor params now.

@ogrisel

ogrisel commented Jan 5, 2012

Copy link
Copy Markdown
Member

Once previous comment is addressed: +1 for merging.

@GaelVaroquaux

Copy link
Copy Markdown
Member Author

On Thu, Jan 05, 2012 at 02:51:52PM -0800, Olivier Grisel wrote:

Once previous comment is addressed: +1 for merging.

OK, will do in 10mn

@GaelVaroquaux
GaelVaroquaux merged commit 96dcaf7 into scikit-learn:master Jan 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LinearRegression does not work with sparse matrix

2 participants