代码改变世界

xgboost dmatrix中的 weight的重要性

2017-11-01 19:59  xplorerthik  阅读(3011)  评论(0编辑  收藏  举报

https://stackoverflow.com/questions/35983565/how-is-the-parameter-weight-dmatrix-used-in-the-gradient-boosting-procedure

 

 

xgboost allows for instance weighting during the construction of the DMatrix, as you noted. This weight is directly tied the instance and travels with it throughout the entire training. Thus is is included in the calculations of the gradients and hessians, and directly impacts the split points and traing of an xgboost model.