我试图通过以下命令在插入符号中尝试递归特征选择:
result <- rfe(x = as.matrix(data.x.train),
y = data.y.train,
sizes = seq(from = 100, to = 10000, length = 10),
rfeControl = rfeControl(functions = rfFuncs,
method = "cv",
number = 5,
rerank = TRUE,
verbose = TRUE,
saveDetails = TRUE,
allowParallel = TRUE))
data.x.train
矩阵包含:
> dim(data.x.train)
[1] 1563 12338
和data.y.train
:
> length(data.y.train)
[1] 1563
并包含8个级别:
> table(data.y.train)
data.y.train
A B C D
515 311 179 149
E F G H
205 133 42 29
可能导致的设置:
Error in { :
task 1 failed - "numbers of columns of arguments do not match"
运行命令几个小时后?
由于
答案 0 :(得分:0)
删除rerank = TRUE,选项,对我来说面临同样的问题