holisticai.bias.plots.success_rate_curves#
- holisticai.bias.plots.success_rate_curves(p_attr, y_pred, groups=None, x_axis='score', ax=None, size=None, title=None)[source]#
Success Rate Curve
Description
This function plots the success rate vs threshold curve for each group.
Parameters
- p_attrarray-like
Protected attribute vector
- y_predarray-like
Predictions vector (regression)
- groups (optional)list
The groups we are considering
- x_axis (optional)‘score’ or ‘quantile’
Indicates whether the x axis is the scores or data quantiles
- ax (optional)matplotlib axes
Pre-existing axes for the plot
- size (optional)(int, int)
Size of the figure
- title (optional)str
Title of the figure
Returns
matplotlib ax