PRML
PRML copied to clipboard
PRML algorithms implemented in Python
Fixes #37
Some strings looks like they're meant to be f-strings but are missing the `f` prefix meaning variable interpolation won't happen. https://github.com/ctgk/PRML/blob/8f8270cbae986c607f3cc6f89afefd58fa69fadd/prml/rv/bernoulli.py#L78 I found this issue automatically. I'm a bot. Beep...
Hi, Should it be the inverse of covariance matrix here? https://github.com/ctgk/PRML/blob/47d9830b39e91690cedb27003934df85cfb8c5c7/prml/rv/multivariate_gaussian_mixture.py#L124 i.e. ` D_sq = np.sum(np.einsum('nki,kij->nkj', d, np.linalg.inv(self.cov)) * d, -1) `
How to install "prml"? Thanks
Hi: How to test one-dimensional data for the variational Gaussian mixture model?
At the end, how to output the mean and variance of each sub-distribution in the mixed Gaussian and their respective mixing ratios
Hi, Thank you for sharing the repository! I've got a problem with [bayesian_logistic_regression.py - L39](https://github.com/ctgk/PRML/blob/master/prml/linear/bayesian_logistic_regression.py#L39). Why does this line of code need to be `+ self.w_precision @ (w - self.w_mean)`....
Hi there, thanks a lot for sharing your implementations! In the update formula for the covariance in the [variational logistic regression](https://github.com/ctgk/PRML/blob/master/prml/linear/variational_logistic_regression.py#L52) model, I believe that the first part of the...
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)
When I run "ch01_Introduction.ipynb", get the error: cannot import name 'logsumexp' from 'scipy.misc' (/opt/anaconda/lib/python3.7/site-packages/scipy/misc/__init__.py) . So, I replace "from scipy.misc import logsumexp" with "from scipy.special import logsumexp" in this three...