使用“功能选择”;fscaret“;在R问题中,列表为空()

使用“功能选择”;fscaret“;在R问题中,列表为空(),r,feature-selection,empty-list,R,Feature Selection,Empty List,我有一个包含很多因子和数值变量的数据框,我正在尝试使用fscaret包进行特征选择 数据样本: age clerical construc educ earns74 gdhlth inlf leis1 rlxal 32 0 0 12 0 0 1 3529 3479 40 1 0 14 9500 1 1 3929 3329 20 1 1 10

我有一个包含很多因子和数值变量的数据框,我正在尝试使用fscaret包进行特征选择

数据样本:

age clerical construc educ earns74 gdhlth inlf leis1 rlxal
32  0         0       12   0        0      1   3529  3479
40  1         0       14   9500     1      1   3929  3329
20  1         1       10   329      0      0   5300  2309
22  0         0       6    602      1      0   5205  4290  
我尝试运行以下代码:

 fsMod <- c("gbm", "treebag", "ridge", "lasso", "Boruta", "glm")
myFS<-fscaret(train.sleepDF, test.sleepDF, myTimeLimit = 40, preprocessData=TRUE, Used.funcRegPred = 'fsMod', with.labels=TRUE,
              supress.output=FALSE, no.cores=2)
fsMod