Fairlearn Bias Audit Starter

SkillAI & models

Use this skill to run a deterministic group fairness audit over a tiny clinical toy cohort with fairlearn.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Fairlearn Bias Audit Starter skill

About this capability

A framework for discovering, compiling, and validating reusable skills for scientific agents.

What this skill tells your AI

The instructions your AI receives, as published by ma-compbio-lab/skillfoundry in skills/clinical-biomedical-data-science/fairlearn-bias-audit-starter/SKILL.md and read by ahel’s review.

Use this skill to run a deterministic group fairness audit over a tiny clinical toy cohort with fairlearn.

What it does

  • Loads a fixed tabular cohort with binary labels, binary predictions, and a sensitive group column.
  • Computes per-group accuracy, selection rate, true positive rate, and false positive rate with MetricFrame.
  • Summarizes demographic parity and equalized odds gaps and ratios.
  • Emits a compact JSON report and threshold-based audit flags for local debugging.

When to use it

  • You need a local starter for fairness or bias analysis in binary clinical risk models.
  • You want a small, reproducible example before auditing a real cohort.

Example

slurm/envs/statistics/bin/python skills/clinical-biomedical-data-science/fairlearn-bias-audit-starter/scripts/run_fairlearn_bias_audit.py \
  --input skills/clinical-biomedical-data-science/fairlearn-bias-audit-starter/examples/toy_fairness_cohort.tsv \
  --summary-out scratch/fairlearn/fairness_audit_summary.json

Verification

  • Skill-local tests: python3 -m unittest discover -s skills/clinical-biomedical-data-science/fairlearn-bias-audit-starter/tests -p 'test_*.py'

Signals

GitHub stars
39
Forks
5
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
fairlearn-bias-audit-starter
Source
github.com/ma-compbio-lab/skillfoundry