【发布时间】:2018-06-14 17:40:12
【问题描述】:
我正在使用 r 中的 caret 包构建 C5.0 模型。
control <- trainControl(method = "repeatedcv",
number = 10,
repeats = 3,
classProbs = TRUE,
sampling = 'smote',
returnResamp="all",
summaryFunction = twoClassSummary)
grid <- expand.grid(.winnow = c(FALSE, TRUE),
.trials = c(1, 5,10,15,20,25,30,40,45,50),
.model= c("tree"),
.splits=c(2,5,10,15,20,25,50))
c5_model <- train(label ~ .,
data = train,
trControl = control,
method = c5info,
tuneGrid = grid,
preProcess = c("center", "scale", "nzv","corr"),
verbose = FALSE)
是否可以将自定义截止点传递给 preProcess 函数以进行相关性 - 例如 0.75 或我想要的任何点?
【问题讨论】:
标签: r correlation r-caret preprocessor