ImportError: cannot import name BayesianGaussianMixture
<p>I am trying to use the Batesian model in <code>sklearn</code> but I get the following error when I try.</p>

<pre><code>&gt;&gt;&gt; from sklearn.mixture import BayesianGaussianMixture
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
ImportError: cannot import name BayesianGaussianMixture
</code></pre>

<p>I am on <code>python 2.7.11</code>. I saw the <a href="http://scikit-learn.org/stable/modules/generated/sklearn.mixture.BayesianGaussianMixture.html" rel="nofollow">documentation</a> and I checked the spelling is correct. What should I do it import it?</p>

<p>Update scikit-learn to 0.18, in <a href="http://scikit-learn.org/0.17/modules/classes.html#module-sklearn.mixture" rel="nofollow">previous versions</a> it was called <code>VBGMM</code> (Variational Bayesian Gaussian Mixture Model) - actually it was a bit different method, but it is the closest you will get in previous versions.</p>

python machine-learning scikit-learn cluster-analysis