XGBoost Split Gain

medium
Unit 18 · Online Learning0/2 to milestone

XGBoost scores a candidate split from per-sample gradients gg and Hessians hh. With G,HG, H the sums on each side and regularisation λ\lambda, γ\gamma:

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
XGBoost Split Gain · TechGradify