PathResult#
- class superglm.PathResult(
- lambda_seq: NDArray,
- coef_path: NDArray,
- intercept_path: NDArray,
- deviance_path: NDArray,
- n_iter_path: NDArray,
- converged_path: NDArray,
- edf_path: NDArray | None = None,
- separation_path: tuple[str | None, ...] | None = None,
Bases:
objectImmutable container for regularization path results.
coef_pathandintercept_pathare each point’s public coefficients and raw intercept, anddeviance_pathits fitted deviance. Rebuilding a point’s predictor asX @ coef_path[i] + intercept_path[i]cancels each numeric column’s offsetcagainst the raw intercept, so a row errs by about2u |c' beta|(u = 2**-53), or2u c / sof the term’s effect for a column of spreads. The ratioc / sdecides it, not the units: a year (c / snear 300) or an epoch time in seconds over months stays near1e-13of the effect, while an offset many orders of magnitude above the spread (a raw ID, or a timestamp over a spread of seconds or less) loses visible digits. The fitted model predicts at the last point with the centred predictor; to predict at pointi, refit atselection_penalty=lambda_seq[i], which reproduces the point to the solver’stol.separation_pathholds each point’s runtime separation finding,Nonewhere its solve had none;fit_pathwarns once naming the points that have one, or refuses underseparation="error".- to_frame()#
Return path telemetry as a pandas DataFrame.