vmeasure {SBMSplitMerge} | R Documentation |
V-measure
Description
Calculate the V-measure of two clusterings
Usage
vmeasure(z, truez, beta = 1)
Arguments
z |
input vector |
truez |
reference vector |
beta |
parameter |
Details
An information based measure of similarity between two clusterings
Value
v-measure of z against truez
See Also
Rosenberg, A., & Hirschberg, J. (2007, June). V-measure: A conditional entropy-based external cluster evaluation measure. In Proceedings of the 2007 joint conference on empirical methods in natural language processing and computational natural language learning (EMNLP-CoNLL) (pp. 410-420).
Examples
vmeasure(c(1,1,2,2,3,3), c(2,2,1,1,3,3)) ## 1 - doesn't care for labels
vmeasure(c(1,1,2,2,3,3), c(1,1,2,2,2,2)) ## 0.7333
vmeasure(c(1,1,2,2,3,3), c(1,1,2,2,3,4)) ## 0.904
[Package SBMSplitMerge version 1.1.1 Index]