title: 'KMeans' object has no attribute 'cluster_centers_'
body: <p>I am using Jupyter notebook and I have written the following code:</p>
  <pre><code>from sklearn.datasets import make_blobs
  dataset = make_blobs(n_samples=200, centers = 4,n_features = 2, cluster_std = 1.6, random_state = 50)
  points = dataset[0];
  from sklearn.cluster import KMeans
  kmeans = KMeans(n_clusters = 4)
  kmeans.fit(points)
  plt.scatter(dataset[0][:,0],dataset[0][:,1])
  clusters = kmeans.cluster_centers_
  </code></pre>
  <p>// The line below gives the error: 'KMeans' object has no attribute 'cluster_centers_'</p>
  <pre><code>clusters = kmeans.cluster_centers_
  </code></pre>
  <p>I was expecting it to display the means or the averages of the points.</p>