Description Usage Arguments Value See Also
View source: R/4-1-grid-search.R
Grid Search for hyper-parameters in a reg
or wcls
model via K-fold Cross
Validation.
1 2 3 4 5 | cvGrid(trainObj, k.fold = 10, gsCtrl, cutoff = 0.5, criteria = c("acc",
"sens", "spec", "auc", "ppv", "npv", "mse", "w.acc", "a.acc", "val.f",
NA)[ifelse("RegObj" %in% class(trainObj), 7, 4)], weight = rep(1,
length(trainObj@X)[1]), inclusion = rep(TRUE, length(trainObj@X)[1]),
print.fold = FALSE, progress = TRUE, all.models = FALSE)
|
trainObj |
A |
k.fold |
The number of folds in the cross validation. |
gsCtrl |
A |
cutoff |
A |
criteria |
A criteria to decide for the best tuning parameters. If NA, then the best model will not be picked. |
weight |
A |
inclusion |
A |
print.fold |
A |
progress |
A |
all.models |
A |
A cvGrid-class
object.
reg
wcls
ensemble
cvKfold
workflow
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.