在 R 中使用 caret 的机器学习
Zach Mayer
Data Scientist at DataRobot and co-author of caret
mtrycaret::train() 的 tuneLength 参数caret 要尝试多少种变体# 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)

在 R 中使用 caret 的机器学习