ctgk / PRML

PRML algorithms implemented in Python
MIT License
11.43k stars 3.25k forks source link

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

Open wgfi110 opened 4 years ago

wgfi110 commented 4 years ago

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)