vmeasure: V-measure

Description Usage Arguments Details Value See Also Examples

View source: R/misc.R

Description

Calculate the V-measure of two clusterings

Usage

1
vmeasure(z, truez, beta = 1)

Arguments

z

input vector

truez

reference vector

beta

parameter beta=1 gives equal weight to homogeneity and completeness

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

1
2
3
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

SBMSplitMerge documentation built on July 1, 2020, 5:23 p.m.