Build#
SuperGLM is built from a family, a feature specification
and a penalty policy, with every constructor argument described on its page.
Once the model exists, the properties below hold that configuration, and the
trailing-underscore attributes are filled in by the fit.
Penalised generalised linear model with splines, group penalties, and REML. |
Configuration and fitted attributes#
family, link,
penalty and
selection_penalty hold the configuration and can
be assigned to change it before the next fit;
lambda2 is the fixed smoothing penalty the
constructor takes as spline_penalty, assignable the same way; and
features is read-only. The trailing-underscore
attributes follow the scikit-learn convention and are resolved by the latest
successful fit: selection_penalty_,
distribution_ and
theta_, the NB2 dispersion.
Defensive copy of configured family intent. |
|
Defensive copy of configured link intent. |
|
Defensive fitted/configured feature-spec view. |
|
Defensive copy of the configured penalty template. |
|
Defensive copy of configured smoothing penalties. |
|
Configured selection-penalty intent. |
|
Resolved selection penalty from the latest successful fit. |
|
Resolved distribution from the latest successful fit. |
|
Resolved NB2 dispersion parameter from the latest successful fit. |