Skip to content

Commit

Permalink
Merge branch 'python/format-eval-result' of github.com:microsoft/Ligh…
Browse files Browse the repository at this point in the history
…tGBM into python/format-eval-result
  • Loading branch information
jameslamb committed Dec 14, 2024
2 parents f2012b7 + 4d446de commit cc9bbbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/lightgbm/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _format_eval_result(value: _EvalResultTuple, show_stdv: bool) -> str:
# tuples from cv() sometimes have a 5th item, with standard deviation of
# the evaluation metric (taken over all cross-validation folds)
if show_stdv and len(value) == 5:
out += f"+ {value[4]}"
out += f" + {value[4]:g}"
return out


Expand Down

0 comments on commit cc9bbbd

Please sign in to comment.