我想使用 distRforest 包在 mlr3 中创建一个学习器。
我的代码:
library(mlr3extralearners)
create_learner( pkg = "." ,
classname = 'distRforest',
algorithm = 'regression tree',
type = 'regr',
key = 'distRforest',
package = 'distRforest',
caller = 'rpart',
feature_types = c("logical", "integer", "numeric","factor", "ordered"),
predict_types = c('response'),
properties = c("importance", "missings", "multiclass",
"selected_features", "twoclass", "weights"),
references = FALSE,
gh_name = 'CL'
)
给出以下错误: sprintf(msg, ...) 中的错误:参数太少
事实上,复制教程https://mlr3book.mlr-org.com/extending-learners.html中的代码会引发相同的错误。
有任何想法吗?非常感谢-c