我正在尝试运行以下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_
我运行的是python3.6。在
sklearn.mixture.GMM
在当前版本的sklearn
中不再可用,根据documentation:鉴于此,我相信您的选择要么是更改代码以使用}的版本。在
GaussianMixture
,要么是降低{相关问题 更多 >
编程相关推荐