0

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

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"

运行命令几个小时后?

谢谢

4

1 回答 1

0

删除 rerank = TRUE, 选项,为面临同样问题的我工作

于 2015-11-14T12:02:45.690 回答