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

Is there ways to set the covariance matrix as diagonal? #2

Open
CRquantum opened this issue Aug 10, 2022 · 2 comments
Open

Is there ways to set the covariance matrix as diagonal? #2

CRquantum opened this issue Aug 10, 2022 · 2 comments

Comments

@CRquantum
Copy link

Great work!
Sometime when do GMM clustering, we assume the covariance matrix is diagonal. Just curious, is there ways in the code so that we can limit the covariance matrix as diagonal matrix?
Thanks much!

Best regards,
Rong

@Jonas-Finkler
Copy link
Owner

Hi Rong,
by now this functionality is not implemented.
The simplest way to implement it, would be to just calculate a diagonal covariance matrix in the M subroutine by considering each dimension individually.
There might be performance gains for high dimensional data if one would only store the diagonal entries of the covariance matrix instead of the full matrix, but this would require modifications in other places of the code.

Please let me know, if you need such a feature and I can help with the implementation.

Best wishes,
Jonas

@CRquantum
Copy link
Author

Thank you so much Jonas!
Yeah, not urgent, when convenient for you, if you may be able to add this diagonal covariance matrix functionality it would be great, I think it could be very useful.
Best regards,
Rong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants