Description Usage Arguments Details Value Examples
External metrics.
1 | homogeneity_completeness_vmeasure(pred_partition, true_partition)
|
pred_partition |
partition predicted by a method |
true_partition |
"true" partition, aka ground truth |
Like scikitlearn, we'll assume the inputs are two vectors of categoricals, or things that can be turned into categoricals.
The homogeneity, the completeness and the v_measure of the two partitions.
1 2 3 | x <- c(0, 0, 1, 1, 2, 2, 3, 3, 4, 4)
y <- c(1, 1, 2, 2, 2, 2, 6, 7, 9, 9)
homogeneity_completeness_vmeasure(x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.