StreamingSnapshot
A snapshot of streaming GAM state at a point in time.
Usage
StreamingSnapshot(
n_obs,
n_batches,
coefficients,
smoothing_params,
edf_total,
scale,
deviance,
)Appended to StreamingGAM’s history every time solve() is called, letting you track how coefficients, smoothing parameters, and fit diagnostics evolve as more batches of data arrive. Retrieved via StreamingGAM.smoothing_history().
Attributes
n_obs: int-
Total (possibly decayed, under sliding-window mode) observation count at the time of this solve() call.
n_batches: int-
Number of batches processed so far.
coefficients: NDArray-
Coefficient estimates at this solve.
smoothing_params: list[float]-
Smoothing parameters used for this solve.
edf_total: float-
Total effective degrees of freedom at this solve.
scale: float-
Estimated scale (dispersion) parameter at this solve.
deviance: float- Accumulated (possibly decayed) deviance at this solve.