View source: R/measures_clusterings.R
eval_report_clusters | R Documentation |
Compute various evaluation measures for a predicted clustering using a ground truth clustering as a reference.
eval_report_clusters(true, pred)
true |
ground truth clustering represented as a membership vector. Each entry corresponds to an element and the value identifies the assigned cluster. The specific values of the cluster identifiers are arbitrary. |
pred |
predicted clustering represented as a membership vector. |
Returns a list containing the following measures:
see homogeneity
see completeness
see v_measure
see rand_index
see adj_rand_index
see variation_info
see mutual_info
see fowlkes_mallows
true <- c(1,1,1,2,2) # ground truth clustering
pred <- c(1,1,2,2,2) # predicted clustering
eval_report_clusters(true, pred)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.