【发布时间】:2016-06-08 21:09:15
【问题描述】:
我想使用包 'partykit' 通过 ctree() 和 cforest() 构建分类树和森林。 由于我的数据集包含 50000 行和 30 列,我想将 minsplit 设置为 150,将 minbucket 设置为 50。 不幸的是,当我输入我的代码时
xplr=ctree_control(mincriterion = 0.999, minsplit=150, minbucket=50)
set.seed(123)
cit999=ctree(as.factor(order) ~ startHour, data=transact_train, controls=xplr)
我收到以下错误消息:
Error in ctree_control(...) :
unused argument (controls = list(teststat = "quad", testtype = "Bonferroni", mincriterion = -0.00100050033358353, minsplit = 150, minbucket = 50, minprob = 0.01, stump = FALSE, mtry = Inf, maxdepth = Inf, multiway = FALSE, splittry = 2, maxsurrogate = 0, majority = FALSE, applyfun = function (X, FUN, ...)
{
FUN <- match.fun(FUN)
if (!is.vector(X) || is.object(X)) X <- as.list(X)
.Internal(lapply(X, FUN))
}))
谁能告诉我为什么会这样?
【问题讨论】:
-
如果你把这个复制成可复制的会很有帮助stackoverflow.com/questions/5963269/…
标签: r