【发布时间】:2016-03-15 07:43:08
【问题描述】:
我使用了这个代码,
tuneRF(x = mtry[,c(4:18)],
y = mtry$Os, ntreeTry=50, stepFactor=2,
improve=0.05,trace=TRUE, plot=TRUE, doBest=FALSE)
得到了错误:
if (errorOld 参数长度为零
我应该改变什么?
【问题讨论】:
-
您应该提供reproducible example
-
你的数据集叫mtry吗??
-
是的。我在数据集上准备了它占总数据的 80%。 ans os 是我想预测的一列。
标签: r regression random-forest