homogeneity_completeness_vmeasure: Homogeneity, completeness and V-Measure metrics for partition...

Description Usage Arguments Details Value Examples

Description

External metrics.

Usage

1
homogeneity_completeness_vmeasure(pred_partition, true_partition)

Arguments

pred_partition

partition predicted by a method

true_partition

"true" partition, aka ground truth

Details

Like scikitlearn, we'll assume the inputs are two vectors of categoricals, or things that can be turned into categoricals.

Value

The homogeneity, the completeness and the v_measure of the two partitions.

Examples

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)

agapow/subtypr documentation built on May 5, 2019, 1:33 a.m.