What do the gradient g_i and hessian h_i represent in XGBoost's objective?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: hard
Interview Round: Other
Overview: Asks what the per-sample gradient and hessian mean in the XGBoost objective and how the tree builder uses them. Tests the second-order expansion of the loss, the leaf weight and split gain formulas, and what a custom objective must return.