approval_rates
def approval_rates(decisions, protected, threshold_int: int, *, labels=None) -> dict
from compileml.fairness import approval_rates
§3 — approval rate per group, with the adverse impact ratio.
threshold_int is a cutoff in display-scale latent units; an applicant
is approved below it. The ratio is reported against the four-fifths rule's
0.80–1.25 window, and the window is reported alongside rather than
collapsed into a pass/fail — a ratio of 0.81 is not the same finding as
1.00 and should not print as if it were.
Parameters#
| Name | Type | Default | Kind |
|---|---|---|---|
| decisions | — | required | positional |
| protected | — | required | positional |
| threshold_int | int | required | positional |
| labels | — | None | keyword-only |
Returns#
dict