K-Means is an unsupervised method. It groups data points into clusters without labels. So, we cannot use accuracy or precision like in labeled tasks.
Instead, we use metrics that measure how well the clusters fit the data. Common metrics are:
- Inertia (Within-Cluster Sum of Squares): Measures how close points are to their cluster center. Lower is better.
- Silhouette Score: Measures how similar a point is to its own cluster compared to other clusters. Scores range from -1 to 1. Higher is better.
- Calinski-Harabasz Index: Ratio of between-cluster variance to within-cluster variance. Higher means better separated clusters.
These metrics help us decide if the clusters are tight and well separated.
