question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PolynomialFeatures' docstring does not mention that sparse data is allowed for fit

See original GitHub issue

Describe the issue linked to the documentation

The docs for PolynomialFeatures.fit() does not mention that sparse data is allowed. The same holds true for fit_transform.

Suggest a potential alternative/fix

The docs for PolynomialFeatures.fit() and PolynomialFeatures.fit_transform() mention that sparse data is allowed.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

sklearn.preprocessing.PolynomialFeatures
Generate a new feature matrix consisting of all polynomial combinations of the features with degree less than or equal to the specified degree....
Read more >
Python MemoryError when doing fitting with Scikit-learn
Using a sparse matrix representation to represent non-sparse data will only result in using more space than you would have originally, so this ......
Read more >
sklearn.preprocessing.data — ibex latest documentation
Notes ----- This implementation will refuse to center scipy.sparse matrices since it would make them non-sparse and would potentially crash the program with ......
Read more >
Node List - Modular toolkit for Data Processing (MDP)
Variance corresponding to the PCA components (eigenvalues of the covariance matrix). self.explained_variance: When output_dim has been specified as a fraction ...
Read more >
data.py
if we are fitting on 1D arrays, scale might be a scalar if ... ValueError( "Cannot center sparse matrices: pass `with_mean=False` instead" "...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found