Learn R Programming

c2c (version 0.1.0)

overall_purity: 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<U+00FC>tze, H. (2008) Introduction to information retrieval (Vol. 1, No. 1). Cambridge: Cambridge university press.