小编BER*_* NA的帖子

AttributeError: 模块“sklearn.mixture”没有属性“GMM”

我正在尝试运行以下 Python 项目:

https://github.com/huanghe314/Text-Independent-Speaker-Indentification-System

这取决于sklearn.mixture.GMM,但尽管我已sklearn安装,但未能找到该模块。它给出的错误如下:

Traceback (most recent call last):

File "C:/Users/User/PyCharmApp/Text-Independent-Speaker-Indentification-System-master/Code/main.py", line 85, in <module>
    p_weight[m] = training.Training_feature_Weight(Name[m] + '.wav')


File "C:\Users\User\PyCharmApp\Text-Independent-Speaker-Indentification-System-master\Code\training.py", line 24, in Training_feature_Weight
    Weight_training = Training_info.GMM_Model_Weight()
  File "C:\Users\User\PyCharmApp\Text-Independent-Speaker-Indentification-System-master\Code\GMM.py", line 31, in GMM_Model_Weight
    weight = mixture.GMM(n_components = self.M, min_covar = 0.01, n_init = 10).fit(self.features).weights_
Run Code Online (Sandbox Code Playgroud)

我正在运行 Python 3.6。

python python-3.x scikit-learn

4
推荐指数
1
解决办法
4474
查看次数

标签 统计

python ×1

python-3.x ×1

scikit-learn ×1