What role do centroids play in the K-Means clustering algorithm?

  • They are the midpoint of clusters
  • They define the classes of data
  • They determine the number of clusters
  • They determine the shape of clusters
In K-Means, centroids are the midpoints of clusters. The algorithm assigns each data point to the nearest centroid, and the centroids are recalculated until convergence.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *