What quantities must a custom objective function supply to XGBoost or LightGBM?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks what a custom objective function has to return to XGBoost or LightGBM and why the library needs it. Tests how gradient boosting builds leaves and scores splits, the function signatures, and the practical pitfalls of writing your own loss.