什么导致任务1中的错误失败 - “RFE中的参数列数不匹配”?

时间:2015-10-22 06:26:42

标签: r r-caret rfe

我试图通过以下命令在插入符号中尝试递归特征选择:

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"

运行命令几个小时后?

由于

1 个答案:

答案 0 :(得分:0)

删除rerank = TRUE,选项,对我来说面临同样的问题