-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: add sparse PCA #170
feat: add sparse PCA #170
Conversation
Loading submodules via the xeofs package introduces circular imports. Use relative import instead to avoid these cases.
In addition to randomized approach, this alogithm provides an exact solution but suffers computational power. Only useful for small datasets
I'm a bit perplexed as to why However inspecting the current code xeofs/xeofs/models/rotator_factory.py Lines 47 to 53 in a2669b8
EDIT: Nevermind, my bad, you actually updated |
isinstance() caters for inheritance, thus it cannot distinguish between EOF and ComplexEOF model. Instead use type() for comparison.
Not sure exactly why ruff didn't complain before on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks very cool, nice work! I don't have time to dig in right now but will definitely revisit this. At a glance the implementation seems solid.
Add Sparse PCA using Variable Projection.
Paper: http://arxiv.org/abs/1804.00341
Repository: https://github.com/erichson/ristretto/tree/master/ristretto
PR provides