PRML icon indicating copy to clipboard operation
PRML copied to clipboard

cannot import name 'logsumexp' from 'scipy.misc' (/opt/anaconda/lib/python3.7/site-packages/scipy/misc/__init__.py)

Open phyer219 opened this issue 6 years ago • 2 comments

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 files: prml/nn/loss/softmax_cross_entropy.py prml/rv/bernoulli_mixture.py prml/rv/variational_gaussian_mixture.py Then it wokrs!

phyer219 avatar Oct 05 '19 13:10 phyer219

@phyer219 I bet you're taking the prml course at ruc. 😂

pzjzeason avatar Oct 07 '19 03:10 pzjzeason

@phyer219 I bet you're taking the prml course at ruc. joy

You are right! If you are interested, you can join our learning group!

phyer219 avatar Oct 07 '19 05:10 phyer219