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

Error running EM example #25

Open
mikewojnowicz opened this issue Oct 24, 2022 · 0 comments
Open

Error running EM example #25

mikewojnowicz opened this issue Oct 24, 2022 · 0 comments

Comments

@mikewojnowicz
Copy link

An attempt to run the EM example produced the error below. A quick search suggests that the problem may be thatlogsumexp is now located at scipy.special rather than scipy.misc.

Cell In [1], line 8
5 import numpy.random as npr
6 import matplotlib.pyplot as plt
----> 8 from pybasicbayes.util.text import progprint_xrange
10 from pylds.models import DefaultLDS
12 npr.seed(0)

File ~/Repos/lds/env/lib/python3.8/site-packages/pybasicbayes/init.py:2
1 from future import absolute_import
----> 2 from . import abstractions, distributions, models, util

File ~/Repos/lds/env/lib/python3.8/site-packages/pybasicbayes/abstractions.py:9
6 import copy
8 import pybasicbayes
----> 9 from pybasicbayes.util.stats import combinedata
10 from pybasicbayes.util.text import progprint_xrange
11 from future.utils import with_metaclass

File ~/Repos/lds/env/lib/python3.8/site-packages/pybasicbayes/util/init.py:3
1 from future import absolute_import
2 all = ['general','plot','stats','text']
----> 3 from . import general, plot, stats, text

File ~/Repos/lds/env/lib/python3.8/site-packages/pybasicbayes/util/stats.py:10
8 import scipy.special as special
9 import scipy.linalg
---> 10 from scipy.misc import logsumexp
11 from numpy.core.umath_tests import inner1d
13 from .general import any_none, blockarray

ImportError: cannot import name 'logsumexp' from 'scipy.misc' (/Users/mwojno01/Repos/lds/env/lib/python3.8/site-packages/scipy/misc/init.py)

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

1 participant