title: why we use kmeans.fit function in kmeans clustering method?
body: <p>I am using kmeans clustering technique from a video but i do not understand why we use .fit method in kmeans clustering?</p>
  
  <pre><code>kmeans = KMeans(n_clusters=5, random_state=0)
  kmeans.fit(X) //why we use this fit method here
  </code></pre>