XGBoost's algorithm, built from scratch. Each new tree is fit to the errors the model is still making.
Left branch = condition true. Leaf color = which class it pushes toward.