lightgbm.record_evaluation

lightgbm.record_evaluation(eval_result)[source]

Create a callback that records the evaluation history into eval_result.

Parameters:eval_result (dict) – A dictionary to store the evaluation results.
Returns:callback – The callback that records the evaluation history into the passed dictionary.
Return type:function