Skip to content

Modified GMM initialization to only use linear memory and time in sph… #6720

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

Closed
wants to merge 1 commit into from

Conversation

vlad17
Copy link

@vlad17 vlad17 commented Apr 26, 2016

Reference Issue

Not an reported issue, to my knowledge.

What does this implement/fix? Explain your changes.

When running a 'diag' GMM on a high-dimensional feature space, a Memory Error was thrown. This is suspicious because quadratic memory should not be used for diagonal GMM fitting. Indeed, there was a section of gmm.py that had a needless covariance matrix calculation for the 'diag' and 'spherical' cases.

The modified code fixes that; behavior should be the same for 'diag'.

For 'spherical', the previous code initialized the variance term to the average value of all terms in the covariance matrix. The new code CHANGES this behavior; now it is the average value of the diagonal terms only. This is a more appropriate initialization anyway.

Any other comments?

@tguillemot
Copy link
Contributor

tguillemot commented Apr 27, 2016

The GMM class is now deprecated and replaced by the new GaussianMixture mixture.
This problem has been solved in #6666.

@vlad17 vlad17 closed this Apr 27, 2016
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

Successfully merging this pull request may close these issues.

2 participants