PolynomialFeatures' docstring does not mention that sparse data is allowed for fit
See original GitHub issueDescribe 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:
- Created 4 years ago
- Comments:11 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This appears to be the case for some other such as (I didn’t check all sklearn classes):
there should probably be a tag and we should test consistency of tag and documentation and actual behavior, right?