-
-
Notifications
You must be signed in to change notification settings - Fork 25.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PolynomialFeatures' docstring does not mention that sparse data is allowed for fit #16646
Comments
PolynomialFeatures should work with sparse input scikit-learn/sklearn/preprocessing/_data.py Lines 1529 to 1531 in 95d4f08
what error are you getting? |
I think it's just a doc issue, instead of
this should be
for |
There's no error, the docs for |
there should probably be a tag and we should test consistency of tag and documentation and actual behavior, right? |
Hi all, may I take care of this one? |
Go ahead @Alemaudit , thanks! (focus on the docstring, you can ignore the tag comment which is more advanced stuff). In order to claim the issue for yourself, please comment exactly |
take |
Thank you @NicolasHug! Done |
Quick question: The .transform() method's doc mentions only the possibility of CSC/CSR sparse matrices. However, it accepts any type of matrices from scikit-learn/sklearn/preprocessing/_data.py Lines 1523 to 1524 in f1acf83
scikit-learn/sklearn/preprocessing/_data.py Lines 1547 to 1548 in f1acf83
Is it an idea do document .fit() and transform() the same way?
|
Go ahead |
…o account sparse matrices (scikit-learn#16646)
Describe the issue linked to the documentation
The docs for
PolynomialFeatures.fit()
does not mention that sparse data is allowed. The same holds true forfit_transform
.Suggest a potential alternative/fix
The docs for
PolynomialFeatures.fit()
andPolynomialFeatures.fit_transform()
mention that sparse data is allowed.The text was updated successfully, but these errors were encountered: