| .compute_gcvu | R Documentation |
Computes the modified GCV_u criterion for a given set of penalty
parameters. This is the objective function minimized during penalty tuning;
gcv_gamma = 1 recovers ordinary GCV.
.compute_gcvu(par, log_penalty_vec, env, ...)
par |
Numeric vector; log-scale penalty parameters. First two elements are log(wiggle_penalty) and log(flat_ridge_penalty). Remaining elements (if any) are log-scale predictor/partition penalties. |
log_penalty_vec |
Numeric vector; log-scale predictor/partition penalties (passed separately for compatibility with the grid search). |
env |
List; pre-computed objects and tuning configuration. Contains:
|
... |
Additional arguments passed to fitting functions. |
List containing:
Numeric; GCV_u criterion value including meta-penalty.
List; fitted coefficient vectors by partition.
List; \mathbf{G}_{k} \mathbf{X}_{k}^{\top}\mathbf{X}_{k}
matrices.
List; eigendecomposition results from
compute_G_eigen.
Numeric; \mathrm{tr}(\mathbf{H})/N, the average
leverage entering the denominator of \mathrm{GCV}_u.
Numeric; \mathrm{tr}(\mathbf{H}), the effective
degrees of freedom.
Matrix; combined penalty matrix
\boldsymbol{\Lambda}.
Matrix; baseline smoothness penalty component.
Matrix; baseline ridge penalty component.
List; predictor-specific penalty matrices.
List; partition-specific penalty matrices.
Numeric; sum of squared residuals.
Numeric; modified-GCV denominator
N(1 - \gamma\bar{W})^{2}.
List; residual vectors by partition.
Numeric; squared denominator.
Matrix; (\mathbf{A}^{\top}\mathbf{G}\mathbf{A})^{-1}.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.