| .compute_meta_penalty_gradient | R Documentation |
Computes the gradient of the meta-penalty with respect to the log-scale penalty parameters, incorporating the exp parameterization chain rule.
.compute_meta_penalty_gradient(
wiggle_penalty,
penalty_vec,
meta_penalty_coef,
unique_penalty_per_predictor,
unique_penalty_per_partition
)
wiggle_penalty |
Numeric; current wiggle penalty on raw scale. |
penalty_vec |
Numeric vector; current predictor/partition penalties
on raw scale. May be empty ( |
meta_penalty_coef |
Numeric; coefficient for the meta-penalty. |
unique_penalty_per_predictor |
Logical; whether predictor-specific penalties are active. |
unique_penalty_per_partition |
Logical; whether partition-specific penalties are active. |
Under exp parameterization \lambda = \exp(\theta):
\frac{\partial}{\partial \theta}
\left[ 0.5 c (\exp(\theta) - 1)^{2} \right]
= c (\lambda - 1) \lambda
Numeric vector; gradient of the meta-penalty on the log scale. Length equals 2 + length(penalty_vec).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.