Intermediate level · Module 5 of 7 · 15 guided hours
Bias Mitigation Strategies
The three families of mitigation (pre-processing, in-processing and post-processing), applied with scikit-learn and Fairlearn, and evaluated honestly for their effect on both fairness and accuracy.
Learning objectives
- Explain pre-, in- and post-processing mitigation
- Apply at least one mitigation with Fairlearn or scikit-learn
- Evaluate mitigation trade-offs in a before/after comparison
Topics
- fixing data first
- reweighting with sample_weight
- ExponentiatedGradient with fairness constraints
- ThresholdOptimizer
- before/after comparison
- non-technical mitigations
Lessons
-
Lesson 1 Pre-processing: Fixing Data and Reweighting
Learners improve the data before training by collecting missing groups, correcting labels and reweighting under-represented groups with scikit-learn's sample_weight.
data collection fixeslabel correctionreweightingsample_weightCorrelationRemover
-
Lesson 2 In-processing and Post-processing with Fairlearn
Learners apply Fairlearn's ExponentiatedGradient (training under a fairness constraint) and ThresholdOptimizer (group-aware decision thresholds), and understand when each is appropriate.
ExponentiatedGradientDemographicParity / EqualizedOdds constraintsThresholdOptimizergroup-specific thresholdssensitive features at prediction time
-
Lesson 3 Evaluating Mitigation and Non-Technical Controls
Learners judge mitigation results honestly, choose an approach and combine it with non-technical controls such as human review, appeals and changes to how the model is used.
accuracy costfairness gainlevelling downhuman reviewuse restriction
Practical activity
Run the full mitigation experiment for the level project (baseline, reweighting and at least one Fairlearn method) and write a recommendation that includes non-technical controls.
Expected outcomes
- Practical experience of bias mitigation
- An honest before/after evaluation
Assessment
Notebook review of the mitigation experiment (60%) and the written recommendation (40%).
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.