Model Pipeline - Cluster evaluation metrics
This pipeline shows how clustering groups data points and how we measure the quality of these groups using cluster evaluation metrics.
This pipeline shows how clustering groups data points and how we measure the quality of these groups using cluster evaluation metrics.
N/A
| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | N/A | N/A | Clustering is unsupervised; no loss or accuracy. Initial cluster centers chosen. |
X and cluster labels labels?from sklearn.metrics import davies_bouldin_score X = [[1, 2], [2, 1], [10, 10], [11, 11]] labels = [0, 0, 1, 1] score = davies_bouldin_score(X, labels) print(round(score, 2))
from sklearn.metrics import silhouette_score X = [[1, 2], [2, 1], [10, 10], [11, 11]] labels = [0, 0, 1] score = silhouette_score(X, labels) print(score)
Pass the test and this pattern moves unknown