larsmans / seqlearn

Sequence learning toolkit for Python
http://larsmans.github.io/seqlearn/
MIT License
690 stars 101 forks source link

in hmm.py there is a wrong reference to logsumexp method #45

Open andrey-chu opened 4 years ago

andrey-chu commented 4 years ago

In hmm.py logsumexp is imported as: from scipy.misc import logsumexp however in the new versions of scipy logsumexp was moved to scipy.special, therefore it should be:

from scipy.special import logsumexp

theoden8 commented 3 years ago

if it helps, here's a workaround

sys.modules['scipy.misc.logsumexp'] = scipy.special.logsumexp
import seqlearn