Description Usage Arguments Value Examples
View source: R/functions_metrics.R
Silhouette coefficient
1 | silhouetteC(object, clusters = object$pred_clusters)
|
object |
An object of class ccdata |
clusters |
A vector corresponding to the dataset clustering results (predicted clusters with ccdata class object by default) |
The silouhette value for all the cluster groups and a mean silouhette.
1 2 3 | data(BankCustomer)
obj <- Dataset(BankCustomer, BankCustomer$Cluster)
silhouetteC(obj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.