discretization_impact#

SuperGLM.discretization_impact(
X: FrameLike,
y: NDArray,
sample_weight: NDArray | None = None,
**kwargs,
) → DiscretizationResult#

Analyse the impact of discretizing this fit’s smooth terms.

Spline and polynomial main effects into bins, and a continuous-by-continuous interaction onto the grid its rating-table block is sampled on.

A row with no predicted mean reads NaN in that prediction array. A row of positive weight the fitted terms give none is left out of the comparison, with a warning naming it; one only the binned terms leave with none makes the comparison unavailable: its metrics are NaN and metrics["rows_without_binned_mean"] counts those rows.