What is the role of the gamma hyperparameter in XGBoost tree pruning?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks what the gamma hyperparameter does during tree pruning in XGBoost. Tests knowledge of the regularized objective, how the per-leaf penalty enters the split gain, when the threshold is applied under each tree method, and how to choose a value that fits the loss scale.