SlowFitWarning#

exception superglm.SlowFitWarning#

Bases: UserWarning

An exact REML fit is large enough to be slow: most of a minute or more.

SuperGLM.fit_reml warns before the smoothing search starts when the model is fitted with discrete=False and rows x coefficients squared reaches 1e11, for a family whose working weights change with the fit (every family except Gaussian with the identity link). It does not warn for a structured-solver fit with a random effect or factor smooth (it never forms the full cross-product) or a model with a monotone term (different engine). The fit still runs and its result is unaffected. Pass discrete=True to the constructor for the fast path, or silence with warnings.filterwarnings("ignore", category=SlowFitWarning).