Skip to content

[source]

Rand Index#

The Adjusted Rand Index is a measure of similarity between a clustering and some ground-truth that is adjusted for chance. It considers all pairs of samples that are assigned in the same or different clusters in the predicted and empirical clusterings.

ARI=ij(nij2)[i(ai2)j(bj2)]/(n2)12[i(ai2)+j(bj2)][i(ai2)j(bj2)]/(n2)

Estimator Compatibility: Regressor

Output Range: -1 to 1

Parameters#

This metric does not have any parameters.

Example#

use Rubix\ML\CrossValidation\Metrics\RandIndex;

$metric = new RandIndex();

References#


  1. W. M. Rand. (1971). Objective Criteria for the Evaluation of Clustering Methods. 


Last update: 2021-03-03