我正在尝试使用 MSE 在 MLR 中拆分我的决策树。这是我的代码
library(mlr)
cl = "classif.rpart"
getParamSet(cl)
learner = makeLearner(cl = cl
, predict.type = "prob"
#, predict.type = "response"
, par.vals = list(split="mse")
, fix.factors.prediction = TRUE
)
它给了我错误
Error in setHyperPars2.Learner(learner, insert(par.vals, args)) :
classif.rpart: Setting parameter split without available description object!
Did you mean one of these hyperparameters instead: minsplit cp xval
You can switch off this check by using configureMlr!
我知道如何在rpart
. 但是不知道MLR