Description Usage Format Author(s) Examples
A wrapper to be used with the package/function caret::train()
.
Supports regression and classification and an extensive default grid.
1 |
An object of class list
of length 7.
Sebastian Hönel sebastian.honel@lnu.se
1 2 3 4 5 6 7 8 9 10 11 | trainIndex <- caret::createDataPartition(
iris$Species, p = .8, list = FALSE, times = 1)
train <- iris[ trainIndex, ]
test <- iris[-trainIndex, ]
fitControl <- caret::trainControl(
method = "repeatedcv", number = 2, repeats = 2)
fit <- caret::train(
Species ~ ., data = train, method = mmb::bayesCaret,
trControl = fitControl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.