GoodnessOfFit

Goodness-of-fit statistics returned by GAM.goodness_of_fit().

Usage

Source

GoodnessOfFit(
    deviance,
    null_deviance,
    deviance_explained,
    r_squared_adj,
    aic,
    bic,
    gcv_score,
    scale,
    edf_total,
    n_obs,
)

Bundles all fit-quality metrics into a single object so they can be inspected, compared, or logged without calling each property individually.

Attributes

deviance: float

Model deviance at convergence.

null_deviance: float

Deviance of the intercept-only model.

deviance_explained: float

Proportion of null deviance explained, in [0, 1].

r_squared_adj: float

Adjusted R-squared, accounting for model complexity via the effective degrees of freedom.

aic: float

Akaike Information Criterion.

bic: float

Bayesian Information Criterion.

gcv_score: float or None

GCV score. None for Bayesian fits (VI, MCMC).

scale: float

Estimated scale (dispersion) parameter.

edf_total: float

Total effective degrees of freedom.

n_obs: int
Number of observations.