python-2.7 - python : cannot import name hmm

标签 python-2.7 scikit-learn

我无法从 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/

相关文章:

python-2.7 - 即使 RAM 空闲,内存也会出现错误

python - 如何比较深度学习的真实图像和预测图像

python - 如何从多类分类的混淆矩阵中提取 False Positive、False Negative

python - 导入错误 : No module named grid_search, learning_curve

python - 在 tensorflow 中保存模型

python - 如果我们只有字符串类型的方法名称,有没有办法获取方法采用的参数数量?

python - App Engine 上的 Django 与 webapp2

python - IMDBPy 安装 mysqlclient 失败 - Python 2.7 Windows

python - KMeans 如何用于断言数据集有噪声?

python - 机器学习中的过度拟合术语