【发布时间】:2018-06-14 15:34:43
【问题描述】:
考虑使用随机森林方法在插入符号中进行 5 折交叉验证,每个折中构建的随机森林的属性是什么?例如在 iris 数据集中:
train_control <- trainControl(method="cv", number=5,savePredictions = TRUE)
output <- train(Species~., data=iris, trControl=train_control, method="rf")
output$results$mtry
[1] 2 3 4
在交叉验证中构建了 3 个 mtry 值、3 个不同的森林是真的吗?我怎样才能了解每个折叠森林的细节,比如 mtry?
【问题讨论】:
标签: r random-forest cross-validation r-caret