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

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

Open
phyer219 opened this issue Oct 5, 2019 · 2 comments

Comments

@phyer219
Copy link

phyer219 commented Oct 5, 2019

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
Copy link

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

@phyer219
Copy link
Author

phyer219 commented Oct 7, 2019

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

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

2 participants