overall_purity {c2c}R Documentation

Calculate overall cluster purity

Description

Used to calculate overall cluster purity from a confusion matrix.

Usage

overall_purity(conf_mat)

Arguments

conf_mat

A confusion matrix from get_conf_mat or otherwise (ideally a matrix, although data frames will probably work)

Value

A scaler, cluster purity as defined in Manning (2008)

References

Manning, C. D., Raghavan, P., & Schütze, H. (2008) Introduction to information retrieval (Vol. 1, No. 1). Cambridge: Cambridge university press.


[Package c2c version 0.1.0 Index]