lightgbm.print_evaluation

lightgbm.print_evaluation(period=1, show_stdv=True)[source]

Create a callback that prints the evaluation results.

Parameters:
  • period (int, optional (default=1)) – The period to print the evaluation results.
  • show_stdv (bool, optional (default=True)) – Whether to show stdv (if provided).
Returns:

callback – The callback that prints the evaluation results every period iteration(s).

Return type:

function