我想运行这个关于1D高斯混合的例子:http://www.astroml.org/book_figures/chapter4/fig_GMM_1D.html,但我一直都有这个错误:
from sklearn.mixture import GMM
ImportError: cannot import name 'GMM'
我试图用来自sklearn.mixture import GaussianMixture
的代码替换它,但代码不起作用,它们没有相同的功能。
提前谢谢你。
https://stackoverflow.com/questions/55799601
复制相似问题