我正在尝试通过以下命令在插入符号中进行递归特征选择:
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"
运行命令几个小时后?
谢谢