Description Usage Arguments Value
use cross-validation to find the best value of lambda
1 2 |
lambda_max |
maximum lambda to try |
step_lambda |
step size between 0 and |
n_folds |
the number of folds to use in cross-validation |
y |
a nx1 label vector |
X |
the design matrix |
one_stderr_rule |
whether to use the one-standard-error rule when choosing lambda |
a list object containing a data.frame summarizing the error for each lambda, and the best lambda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.