R-MLR : get tuned hyperparameters for a wrapped learner
问题 I'm building an xgboost classification task in R using the mlr package : # define task Task <- mlr::makeClassifTask(id = "classif.xgboost", data = df, target = "response", weights = NULL, positive = "yes", check.data = TRUE, blocking = folds) # make a base learner lrnBase <- makeLearner(cl = "classif.xgboost", predict.type = "prob", # "response" (= labels) or "prob" (= labels and probabilities) predict.threshold = NULL ) I have to undersample one of my classes : lrnUnder <-