| .compute_loocv_gradient | R Documentation |
Computes the analytical gradient of the exact leave-one-out tuning criterion with respect to the log penalty parameters.
.compute_loocv_gradient(par, log_penalty_vec, outlist = NULL, env, ...)
par |
Numeric vector; log-scale penalty parameters. |
log_penalty_vec |
Numeric vector; log-scale predictor/partition penalties. |
outlist |
List or NULL; cached results from |
env |
List; tuning environment. |
... |
Additional arguments passed to fitting functions. |
The implementation below keeps the exact LOO gradient fully analytic,
including the leverage derivative. In empirical diagnostics, the
observation-wise leverage component can be numerically delicate even when
the aggregate gradient remains informative; see the developer diagnostics in
inst/diagnostics/gradient_diagnostics.R for inspection tools.
List with criterion_value, gradient, and
outlist.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.