| vmeasure {sabre} | R Documentation | 
V-measure
Description
A conditional entropy-based external cluster evaluation measure.
Usage
vmeasure(x, y, z = NULL, B = 1)
Arguments
| x | A numeric vector, representing a categorical values. | 
| y | A numeric vector, representing a categorical values. | 
| z | A numeric matrix. A contingency table of the counts at each
combination of categorical levels. By default this argument is set to  | 
| B | A numeric value. If  | 
Value
A list with three elements:
- "v_measure" 
- "homogeneity" 
- "completeness" 
References
Rosenberg, Andrew, and Julia Hirschberg. "V-measure: A conditional entropy-based external cluster evaluation measure." Proceedings of the 2007 joint conference on empirical methods in natural language processing and computational natural language learning (EMNLP-CoNLL). 2007.
Examples
x = c(1, 1, 1, 2, 2, 3, 3, 3, 1, 1, 2, 2, 2, 3, 3)
y = c(rep(1, 5), rep(2, 5), rep(3, 5))
vmeasure(x, y)