executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
assessmentUse Fairlearn assessment APIs for MetricFrame, group fairness metrics, bootstrapped confidence intervals, model comparison, and subgroup plots.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is about assessing model behavior across groups: MetricFrame, sensitive_features, group metrics, demographic parity/equalized odds metrics, intersections, control features, confidence intervals, plot_model_comparison, plot_roc_curve_by_group, or the experimental plot_metric_frame helper.
y_true, y_pred or scores, and sensitive_features row-for-row.MetricFrame with a metric callable or a metric dictionary.overall, by_group, group_min(), group_max(), difference(), and ratio().n_boot and ci_quantiles; if either is set alone Fairlearn raises a bootstrap parameter error.plot_roc_curve_by_group, plot_model_comparison, or the experimental plot_metric_frame import path.references/metricframe-workflows.md for MetricFrame inputs/outputs, metric helpers, derived metrics, sample parameters, intersections, and persistence patterns.references/plotting-and-confidence-intervals.md for plotting helpers, headless plotting, ROC-by-group, model comparison, and bootstrap confidence intervals.references/troubleshooting.md for missing matplotlib, length mismatches, custom metric failures, bootstrap errors, and experimental plotting import issues.scripts/smoke_assessment.py for a tiny synthetic assessment and optional plot smoke check.fairlearn.metrics.MetricFrameselection_rate, count, true_positive_rate, true_negative_rate, false_positive_rate, false_negative_rate, mean_predictiondemographic_parity_difference, demographic_parity_ratio, equalized_odds_difference, equalized_odds_ratio, equal_opportunity_difference, equal_opportunity_ratiomake_derived_metric, generated <metric>_{difference,ratio,group_min,group_max} functionsplot_model_comparison, plot_roc_curve_by_group, and plot_metric_frame from fairlearn.experimental.enable_metric_frame_plotting../datasets/; use this sub-skill only after the data is loaded and predictions/scores are available.../../references/troubleshooting.md and ../installation/.control_features when comparing sensitive-feature disparities within slices such as model version, region, or time bucket.sample_weight or other side inputs, pass sample_params with the same row alignment as y_true and y_pred.MPLBACKEND=Agg or call matplotlib.use("Agg") before plotting.Run a no-network smoke check:
python sub-skills/assessment/scripts/smoke_assessment.py
Run plot coverage in a matplotlib-capable environment:
python sub-skills/assessment/scripts/smoke_assessment.py --plot --output-dir /tmp/fairlearn-assessment-plots