K-Means Clustering Implementation Steps: 4 to 6

Continue to become familiar with the implementation steps (4-6) of k-means clustering.

4) Predict

By using the predict function under a new variable (model_predict), you can execute the model and generate the centroid coordinates using cluster_centers_.

Get hands-on with 1400+ tech skills courses.