how to solve errors in sklearn library for gmm
Solution 1:
You most likely have a wrong scikit learn version. The module sklearn.mixture.gmm is deprecated since version 0.18 and was removed in v0.20. So you have some Options:
-
Downgrade your scikit learn Example:
pip uninstall scikit-learn
pip install scikit-learn==0.19.2
-
Change your code so that it it tries to import
from sklearn.mixture import GaussianMixture