cluster_agreement: Agreement between two partitions

View source: R/utils-evaluation.R

cluster_agreementR Documentation

Agreement between two partitions

Description

Computes the adjusted Rand index (ARI), normalised mutual information (NMI) and pairwise Jaccard between two label vectors of equal length.

Usage

cluster_agreement(a, b)

Arguments

a, b

Integer/character/factor label vectors of equal length.

Details

ARI rule of thumb: >0.90 excellent; 0.75-0.90 good; 0.50-0.75 moderate; <0.50 weak.

Value

A named numeric vector c(ARI, NMI, Jaccard).

Examples

cluster_agreement(c(1, 1, 2, 2), c(2, 2, 1, 1))   # identical up to relabel

MosaiClusteR documentation built on Oct. 25, 2026, 1:08 a.m.