Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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 then?

question from:https://stackoverflow.com/questions/34151051/how-does-xgboost-do-parallel-computation

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
258 views
Welcome To Ask or Share your Answers For Others

1 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...