Description Usage Arguments Details Value Examples
Provides regularization parameters used for cross validation in the estimation stage.
1 | give.lambdas(i, Y)
|
i |
a number. (Its true interpretation is unknown, but the purpose is to set the starting and end points for grid search) |
Y |
a vector. The response vector. |
Caution: the suggested values for i is between -14 to 14, but I have not found any paper for the reason. Also, the SPAMS paper use the model error as the input vector σ instead of the original response vector y, but in practice the current choice works better to achieve the wanted sparsity. Reasons unknown, function to be included.
value of lambda
1 | lam <- map_dbl(seq(-12,12), ~ give.lambdas.inter(.x, Y = Y.single))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.