Skip to content

Metrics adjustedmutualinformation

github-actions[bot] edited this page Aug 22, 2026 · 24 revisions

AdjustedMutualInformation

Shared information between two labellings, corrected for what chance alone would produce.

public static class AdjustedMutualInformation

Example — the same partition under different names.

using Lodestar.Metrics;

double same = AdjustedMutualInformation.Score([0, 0, 1, 1], [2, 2, 0, 0]);  // => 1

RemarksNormalizedMutualInformation with the chance correction AdjustedRand applies to pair counts. That correction is what makes it safe to compare clusterings with different numbers of clusters: splitting a labelling further raises the raw mutual information, and raises the expected one with it.

Reference behaviour is sklearn.metrics.adjusted_mutual_info_score.

Applies to — net10.0, netstandard2.0.

See alsoNormalizedMutualInformation, FowlkesMallows, the clustering index.

Members

Member What it does
AdjustedMutualInformation.Score Mutual information, corrected for chance.

Lodestar

Project

Clone this wiki locally