我无法从 sklearn 导入 hmm 模块。
from sklearn import hmm
我收到错误:
ImportError: cannot import name hmm
最佳答案
不知道您是否找到了解决问题的方法。
您可以使用 hmmlearn 安装和实现您的 HMM 。
它可以通过pip install hmmlearn
轻松安装。
引用Scikit-learn,
Warning The sklearn.hmm module has now been deprecated due to it no longer matching the scope and the API of the project. It is scheduled for removal in the 0.17 release of the project. This module has been moved to a seperate repository: https://github.com/hmmlearn/hmmlearn
关于python-2.7 - python : cannot import name hmm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37697038/