ModelSummary#

class superglm.ModelSummary(
data: dict[str, Any],
model_info: dict[str, Any],
coef_rows: list[_CoefRow],
alpha: float = 0.05,
detail: str = 'compact',
basis_detail: dict[str, list[_BasisDetailRow]] | None = None,
level_presentation: SummaryLevelDisplay | None = None,
)#

Bases: object

Formatted model summary with ASCII and HTML output.

Returned by model.summary() and ModelMetrics.summary(). Supports:

  • print(summary) — ASCII table for terminals

  • Jupyter _repr_html_ — HTML table for notebooks

  • summary['fit'] — dict access (backward compat)

  • 'fit' in summary — membership test (backward compat)

  • summary.to_dict() — full dict

to_dict() → dict[str, Any]#

Return the raw summary dict (backward compatibility).