Adjusted Rand Index

hard
Unit 20 · Clustering & Regression0/0 to milestone

The adjusted Rand index compares two clusterings, correcting for chance: random labelings score about 0 and identical ones score 1 (label names don't matter).

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Adjusted Rand Index · TechGradify