Skip to content
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

add a sparse PCA step #73

Closed
topepo opened this issue Feb 22, 2021 · 5 comments
Closed

add a sparse PCA step #73

topepo opened this issue Feb 22, 2021 · 5 comments
Labels
feature a feature request or enhancement

Comments

@topepo
Copy link
Member

topepo commented Feb 22, 2021

Via the VBsparsePCA package.

@topepo topepo added the feature a feature request or enhancement label Feb 22, 2021
@juliasilge
Copy link
Member

I'm not sure if you have specific reasons for wanting to use VBsparsePCA (Bayesian vs. not?), but there's a different implementation of PCA for sparse data in irlba that I have used a fair amount with great results. It is what is used in widyr as well.

@topepo
Copy link
Member Author

topepo commented Feb 23, 2021

I'll check it out. I saw VBsparsePCA when it was recently released and liked that it was fast and consistent with prcomp() results.

@topepo
Copy link
Member Author

topepo commented Feb 23, 2021

One difference is that VBsparsePCA applies the sparsity for the all the loadings for a predictor (so it has no affect on all components). irlba doesn't use that constraint. Since I would only need to keep the rotation matrix, it might be easy to do both (step_pca_sparse() and step_pca_sparse_bayes()?).

@EmilHvitfeldt
Copy link
Member

There is also a sparse pca step in the MachineShop package using the {elasticnet} package

@github-actions
Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants