dot-fit_get_B: Call get_B During Penalty Tuning

.fit_get_BR Documentation

Call get_B During Penalty Tuning

Description

Internal wrapper that calls get_B with all arguments drawn from the tuning environment env. Separated from .fit_coefficients so the fallback path in .fit_coefficients is clean and does not repeat the full argument list.

This helper is the point at which penalty tuning inherits the full constrained solver described in lgspline-details, including GLM reweighting, dense correlation whitening, and the structured-correlation Woodbury acceleration when available. No additional tuning-specific approximation is introduced here beyond whatever get_B itself uses.

Usage

.fit_get_B(G_list, Lambda, L_partition_list, env, return_G_getB, ...)

Arguments

G_list

List; eigendecomposition results from compute_G_eigen, containing Ghalf and GhalfInv.

Lambda

Matrix; current combined penalty matrix.

L_partition_list

List; partition-specific penalty matrices.

env

List; tuning environment from .build_tuning_env.

return_G_getB

Logical; whether to return G inside the fit. Set to TRUE within .compute_gcvu and .compute_gcvu_gradient so that B_list$G_list carries the (possibly GLM-iterated) G matrices required for the subsequent AGAmult_wrapper and trace computations.

...

Additional arguments forwarded to the fitting routine.


lgspline documentation built on May 8, 2026, 5:07 p.m.