Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

An open-source Python library that breaks model performance down by subgroup and offers algorithms to reduce the gaps you find.

Websitehttps://fairlearn.org
Source codehttps://github.com/fairlearn/fairlearn
Developed byFairlearn community (originally Microsoft)
TypeSoftware library: Python package
Lifecycle phaseDevelopment, Evaluation
FUTURE-AIFairness
ForAI developers, Researchers
FacilitationNo facilitator needed
Skills neededPython, scikit-learn
CostFree
LanguagesEnglish
MaturityEstablished
LicenceMIT

What it is

Fairlearn’s MetricFrame lets you compute any scikit-learn style metric, such as sensitivity or calibration error, for every subgroup at once and report the differences or ratios between them. Its mitigation module includes reduction-based training methods and threshold post-processing that trade off overall accuracy against fairness constraints. The project began at Microsoft and is now run as a community-driven open-source project, with user guides that stress that fairness is a sociotechnical question rather than a purely technical one.

In healthcare

For a clinical prediction model you can use Fairlearn to report sensitivity, specificity or other metrics separately for groups such as sex, age band or hospital site, which is what subgroup analyses in clinical evaluation call for. You still need to add confidence intervals and judge clinical significance yourself, because small subgroups make point estimates unstable.

Where to use it in The ELSA Way

References