class_entropy {c2c} | R Documentation |
Used to calculate cluster entropy from a confusion matrix, for each class (i.e. each row and column of the confusion matrix).
class_entropy(conf_mat)
conf_mat |
A confusion matrix from |
Metrics per class are useful when you are comparing two classifications with different numbers of classes, when an overall measure might not be useful or sensible. Entropy as defined in Manning (2008).
A data frame with two columns, the first corresponding to the confusion matrix rows, the second corresponding to the confusion matrix columns.
Manning, C. D., Raghavan, P., & Schütze, H. (2008) Introduction to information retrieval (Vol. 1, No. 1). Cambridge: Cambridge university press.