refit_unpenalised#

SuperGLM.refit_unpenalised(
X: object,
y: NDArray,
sample_weight: NDArray | None = None,
offset: NDArray | None = None,
*,
keep_smoothing: bool = True,
) → SuperGLM#

Refit with only active features and no selection penalty.

The refit keeps the model’s declared separation mode. A level whose separation the selection penalty exempted is not exempt without it, so under separation="error" the refit raises SeparationError for that level, and under "warn" it fits with a SeparationWarning.