やりたいこと
マルコフモデルを学ぼうとしています。
Pythonでhmmをインポートしたいです。
実行環境
Python 3.6.8
Jupyter Notebook
実行とエラー内容
Python
1from hmmlearn import hmm
エラーコード
--------------------------------------------------------------------------- ImportError Traceback (most recent call last) ----> 1 from hmmlearn import hmm c:\users...\anaconda3\envs\py36\lib\site-packages\hmmlearn\hmm.py in <module> 14 from scipy.misc import logsumexp 15 from sklearn import cluster ---> 16 from sklearn.mixture import ( 17 distribute_covar_matrix_to_match_covariance_type, _validate_covars 18 ) ImportError: cannot import name 'distribute_covar_matrix_to_match_covariance_type'
試したこと
AnacondaPrompt上で実行
conda update -n base conda
pip install sklearn
conda install -c omnia hmmlearn
プロンプト上ではエラーなく動いているように見えました。
Python初心者ですが、よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/03/19 08:57