Machine Learning, Gradient Boosting, Data Science, Towards Data Science, Loss Function.
validation loss in LightGBM requires defining a function that takes in the same two arrays, but returns three values: a string with name of metric to print, the loss itself, and a boolean about whether higher is better. Code to implement Custom Loss in LightGBM Defining custom validation and