glmboost – Componentwise L2-boosting with linear base learners.#
Back to family axis | Back to L4 | Browse all options
Operational op under axis
family, sub-layerL4_A_model_selection, layerl4. Standalone callable:mf.functions.glmboost_fit.
Function signature#
mf.functions.glmboost_fit(
X: np.ndarray | pd.DataFrame,
y: np.ndarray | pd.Series,
*,
n_iter: int = 100,
learning_rate: float = 0.1,
) -> GLMBoostFitResult
Parameters#
name |
type |
default |
constraint |
description |
|---|---|---|---|---|
|
`np.ndarray |
pd.DataFrame` |
— |
— |
|
`np.ndarray |
pd.Series` |
— |
— |
|
|
|
>=1 |
Number of boosting iterations. More iterations = finer coefficient path. |
|
|
|
>0 |
Shrinkage factor applied to each coefficient update. Smaller = slower convergence, more regularisation. |
Returns#
GLMBoostFitResult — frozen dataclass with fit results.
Attribute |
Type |
Description |
|---|---|---|
|
|
Fitted coefficient vector, shape (n_features,). |
|
|
Fitted intercept scalar (initialised to mean(y)). |
|
|
Number of boosting iterations used. |
|
|
Shrinkage factor used. |
|
|
Predictions for new data X, shape (n_samples,). |
|
|
Human-readable text table of fit results. |
Behavior#
Bühlmann-Hothorn (2007) componentwise boosting: at each iteration picks the predictor most correlated with the residual and updates only its coefficient. Approximates lasso with a boosting interpretation.
When to use
Transparent feature-selection pathways; alternative to lasso.
In recipe context#
Set params.family = "glmboost" in the relevant layer to activate this op within a recipe:
# Layer L4 recipe fragment
params:
family: glmboost
References#
macroforecast design Part 2, L4: ‘forecasting model is the layer where every authoring iteration ends – pick family, tune, repeat.’
Bühlmann & Hothorn (2007) ‘Boosting algorithms: Regularization, prediction and model fitting’, Statistical Science 22(4).