A wrapper to be used with the package/function caret::train(). Supports regression and classification and an extensive default grid.

bayesCaret

Format

An object of class list of length 7.

Examples

if (FALSE) { 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) }