How does XGBoost compute the gain of a candidate split from gradient and hessian sums?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how XGBoost scores a candidate tree split using only the summed gradients and hessians of the rows on each side. Tests the second-order Taylor expansion of the loss, the optimal leaf weight, the roles of lambda and gamma, and efficient threshold sweeps.