plot_selection_impact_ratio#

solas_disparity.plots.plot_selection_impact_ratio(...)#

Generate a plot for a categorical AIR result object.

Parameters
  • disparity (Disparity) – Disparity result.

  • column (str, optional) – Column to plot. Defaults to const.IMPACT_RATIO.

  • group_category (Optional[Union[str, float]], optional) – Category slice of the summary table to plot.

  • None (If) – “Race/Ethinicty”, “Gender” and “Intersectional”. Defaults to None

  • categories (plot all group) – “Race/Ethinicty”, “Gender” and “Intersectional”. Defaults to None

  • separate (bool, optional) – Whether to generate a separate figure for each category. Defaults to False.

Returns

A figure or list of interactive plotly figures if separate is set to True.

Return type

Union[Figure, List[Figure]]