ctgk / PRML

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

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

Open phyer219 opened 5 years ago

phyer219 commented 5 years ago

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!

pzjzeason commented 5 years ago

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

phyer219 commented 5 years ago

@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!