Description Usage Arguments Value
Cross Validate Penalized Elastic Net S-Estimator (PENSE)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
formula |
a model formula |
data |
a training data set |
cv.method |
preferably one of "boot632" (the default), "cv", or "repeatedcv". |
nfolds |
the number of bootstrap or cross-validation folds to use. defaults to 5. |
nrep |
the number of repetitions for cv.method = "repeatedcv". defaults to 4. |
folds |
a vector of pre-set cross-validation or bootstrap folds from caret::createResample or caret::createFolds. |
tunlen |
the number of values for the unknown hyperparameter to test. defaults to 10. |
crit |
the criterion by which to evaluate the model performance. must be one of "MAE" (the default) or "MSE". |
select |
the selection rule to use. Should be one of "best" or "oneSE" (the default). |
max.c |
the largest value of the constant for calculating lambda. defaults to 8, but may be adjusted. for example, if the error metric becomes constant after a certain value of C, it may be advisable to lower max.c to a smaller value to obtain a more fine-grained grid over the plausible values. |
min.a |
the minimum value of the alpha parameter. defaults to 0. |
max.a |
the maximum value of the alpha parameter. defaults to 1. |
a train object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.