A ground-truth clustering metric that measures the ratio of samples in a cluster that are also members of the same class. A cluster is said to be homogeneous when the entire cluster is comprised of a single class of samples.
Estimator Compatibility: Clusterer
Output Range: 0 to 1
This metric does not have any parameters.
use Rubix\ML\CrossValidation\Metrics\Homogeneity; $metric = new Homogeneity();