Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.06 KB

rand-index.md

File metadata and controls

25 lines (17 loc) · 1.06 KB

[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.

$$ {\displaystyle ARI = {\frac {\left.\sum {ij}{\binom {n{ij}}{2}}-\left[\sum {i}{\binom {a{i}}{2}}\sum {j}{\binom {b{j}}{2}}\right]\right/{\binom {n}{2}}}{\left.{\frac {1}{2}}\left[\sum {i}{\binom {a{i}}{2}}+\sum {j}{\binom {b{j}}{2}}\right]-\left[\sum {i}{\binom {a{i}}{2}}\sum {j}{\binom {b{j}}{2}}\right]\right/{\binom {n}{2}}}}} $$

Estimator Compatibility: Clusterer

Score Range: -1 to 1

Parameters

This metric does not have any parameters.

Example

use Rubix\ML\CrossValidation\Metrics\RandIndex;

$metric = new RandIndex();

References