How does XGBoost do parallel computation?

前端 未结 1 676
醉酒成梦
醉酒成梦 2021-01-01 08:50

XGBoost uses the method of additive training in which it models the residual of the previous model.

This is sequential though, how does it to parallel computing the

相关标签:
1条回答
  • 2021-01-01 09:47

    Xgboost doesn't run multiple trees in parallel like you noted, you need predictions after each tree to update gradients.

    Rather it does the parallelization WITHIN a single tree my using openMP to create branches independently.

    To observe this,build a giant dataset and run with n_rounds=1. You will see all your cores firing on one tree. This is why it's so fast- well engineered.

    0 讨论(0)
提交回复
热议问题