LossRatioChartResult#

class superglm.LossRatioChartResult(bins: pd.DataFrame, figure: Figure | None)#

Bases: object

Result from superglm.loss_ratio_chart().

Attributes:
binspd.DataFrame

One row per quantile bin with columns: bin, exposure_share, observed, predicted.

figurematplotlib.figure.Figure or None

The generated figure, or None if an external ax was provided.