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

whether is it an error in computing the gauss of mix_gaussian? #23

Open
wgfi110 opened this issue Oct 29, 2019 · 0 comments
Open

whether is it an error in computing the gauss of mix_gaussian? #23

wgfi110 opened this issue Oct 29, 2019 · 0 comments

Comments

@wgfi110
Copy link

wgfi110 commented Oct 29, 2019

in prml/rv/multivariate_gaussian_mixture.py:124
the origin is :
D_sq = np.sum(np.einsum('nki,kij->nkj', d, self.cov) * d, -1)
should be changed to:
D_sq = np.sum(np.einsum('nki,kij->nkj', d, np.linalg.inv(self.cov)) * d, -1)

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

1 participant