Description Usage Arguments Value Examples
avg_sil_score This function takes in a vector of cluster labels and a corresponding array of points and calculates the average silhouette score across all clusters. It returns the value of the average silhouette score.
1 | avg_sil_score(labels, X)
|
labels |
vector: A vector of cluster labels. |
X |
matrix: A (n_points x n_features) matrix of points. |
numeric: The average silhouette score.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.