Machine Learning with caret in R
Zach Mayer
Data Scientist at DataRobot and co-author of caret
mtry
tuneLength
argument to caret::train()
caret
how many different variations to try# Load some data
library(caret)
library(mlbench)
data(Sonar)
# Fit a model with a deeper tuning grid
model <- train(
Class ~ .,
data = Sonar,
method = "ranger",
tuneLength = 10
)
# Plot the results
plot(model)
Machine Learning with caret in R