You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
An attempt to run the EM example produced the error below. A quick search suggests that the problem may be that
logsumexp
is now located atscipy.special
rather thanscipy.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)
The text was updated successfully, but these errors were encountered: