View source: R/external_cluster_validity.R
conditionalClusterEntropy | R Documentation |
Computes the conditional entropy of a set of clusters, given the true classes, as defined in https://aclweb.org/anthology/D/D07/D07-1043.pdf
conditionalClusterEntropy(contingency, c, k)
contingency |
Table, contingency table between clusters and
conditions as returned by the |
c |
Vector of classes |
k |
Vector of clusters |
Numeric
clusters <- c(0, 0, 2, 1, 1, 0, 1)
classes <- c("A", "A", "A", "B", "B", "A", "B")
ct <- table(classes, clusters)
conditionalClusterEntropy(contingency = ct)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.