The notebook synthetic_experiments.Rmd reproduces the synthetic empirical analysis in the paper "Counterfactual Risk Assessments, Evaluation, and Fairness."
The code for post-processing is based on https://github.com/gpleiss/equalized_odds_and_calibration with a slight modification that enforces the mixing rates are within the range [0,1].