Description Usage Arguments Value Examples
glmnet arguments helper function
1 2 3 4 5 6 7 8 9 |
alpha |
the elastic net mixing parameter |
cmplx |
Value(s) of the penalty parameter lambda at which predictions are required. Default is the value s = "lambda.1se" stored on the CV object. Alternatively s = "lambda.min" can be used. If s is numeric, it is taken as the value(s) of lambda to be used. (For historical reasons the glmnet authors use the symbol 's' to reference this parameter) |
weights |
observation weights. Default is 1 for each observation |
foldid |
an optional vector of values between 1 and nfold identifying what fold each observation is in. If supplied, nfold can be missing. |
nfolds |
number of folds - default is 10. Although nfolds can be as large as the sample size (leave-one-out CV), it is not recommended for large datasets. Smallest value allowable is nfolds=3 |
keep_mdl |
a logical value. If |
keep_prd |
a logical value. If |
a named list with arguments that should be passed into the
.fun_args
argument of scrimp_mdl.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.