报错信息如下
报错原因
较新版本的scikit-learn没有该模块。通过查看版本,它在v 0.18中被弃用,并在v 0.20中删除。
解决方案
用
from sklearn.mixture import GaussianMixture
替换
from sklearn.mixture import GMM
较新版本的scikit-learn没有该模块。通过查看版本,它在v 0.18中被弃用,并在v 0.20中删除。
用
from sklearn.mixture import GaussianMixture
替换
from sklearn.mixture import GMM