-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
PCA supports sparse now, docs suggest otherwise. #28406
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
Comments
Indeed, we should correct the documentation. Another PR to i
8000
mprove the situation is to change the behaviour of TypeError: PCA only support sparse inputs with the "arpack" solver, while "auto" was passed. See TruncatedSVD for a possible alternative. In a new PR, we should instead select the |
I read the documentation and understand that |
You may understand better if you look directly at the code. scikit-learn/sklearn/decomposition/_pca.py Lines 500 to 508 in f323eb4
My understanding is that if the input is sparse you directly select "arpack"; other things are left unchanged. By the way you may need to refactor a bit to take care of the |
8000
Thanks for your clarification. I will do a PR on this |
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue linked to the documentation
The latest release notes for 1.4 say the following about PCA.
However, once you go to the PCA docs it still says this.
Suggest a potential alternative/fix
I guess that one sentences can just be removed now? I can whip up a PR if folks agree.
The text was updated successfully, but these errors were encountered: