Description Usage Arguments Value
use cross-validation to find the best values of lambda and alpha
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 pair of lambda/alpha, and the best lambda/alpha
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.