Description Usage Arguments Value Author(s) Examples
Gets the purity of a label vector wrt a ground truth (in the context of a clustering algorithm).
1 | getPurity(truthLabels, inferLabels)
|
truthLabels |
ground truth labels, to which inferred labels are compared to compute the purity value |
inferLabels |
vector of inferred labels, which should have the same length as truthLabels |
purity value in [0,1]
Pierrick Bruneau
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.