在mlr makeRegrTask中可以有一个偏移量吗?
我想使用具有非单位权重的泊松计数目标的xgboost,因此希望使用base_margin,但除非我遗漏了一些东西,否则xgboost的mlr包不提供这些功能?
发布于 2019-03-15 18:49:01
这是xgboost中的一个超参数,当前未包含此参数。
您当前只能更改此处所示的"base_score“:https://github.com/mlr-org/mlr/blob/master/R/RLearner_regr_xgboost.R
您可以使用其中的函数,并将参数"base_margin“添加到学习器中,然后也可以在mlr中使用它。(关于如何构建学习者的描述可以在这里找到:https://mlr.mlr-org.com/articles/tutorial/create_learner.html)
https://stackoverflow.com/questions/55167115
复制相似问题