title: Weird error in sklearn.cluster.KMeans
body: <p>I want to use mr. yasaichi's implementation of x-means written in Python for my master's thesis (yasaichi's x-means: <a href="https://gist.github.com/yasaichi/254a060eff56a3b3b858" rel="nofollow">https://gist.github.com/yasaichi/254a060eff56a3b3b858</a>) . For the last few weeks there have been no problem and I have been running the algorithm several times on various data sets. Today, however, a weird error popped up:</p>
  
  <blockquote>
    <p>AttributeError: 'KMeans' object has no attribute 'get_params'.</p>
  </blockquote>
  
  <p>The error comes from line 75 in the yasaichi's implementation:</p>
  
  <blockquote>
    <p>labels = range(0, k_means.get_params()["n_clusters"])</p>
  </blockquote>
  
  <p>Originally I thought it was me who had done some weird changes to the code, but when I re-downloaded the original again it came up with the same error.</p>
  
  <p>Any ideas?</p>