【发布时间】:2016-07-21 22:53:39
【问题描述】:
我正在尝试在 R 中使用 VSURF 和 randomForest,但库中的函数(如 predict.VSURF、predict.randomForest 和 plot.VSURF)不起作用,并且出现以下错误:
错误:找不到函数“predict.VSURF”
这是一个可重现的例子:
library(randomForest)
library(VSURF)
data(cars)
fit <- VSURF(x = cars[1:402,2:ncol(cars)], y = cars[1:402,1])
#At this step I get the error: Error: could not find function "predict.VSURF"
preds <- predict.VSURF(fit, newdata = cars[403:804,2:ncol(cars)])
【问题讨论】:
标签: r random-forest