Skip to content

Commit

Permalink
ruff auto-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Dec 18, 2024
1 parent c5a69fd commit b8220b7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python-package/lightgbm/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,7 @@ def _agg_cv_result(
# [
# (<dataset_name>, <metric_name>, mean(<values>), <is_higher_better>, std_dev(<values>))
# ]
return [
(k[0], k[1], float(np.mean(v)), metric_types[k], float(np.std(v)))
for k, v in metric_values.items()
]
return [(k[0], k[1], float(np.mean(v)), metric_types[k], float(np.std(v))) for k, v in metric_values.items()]


def cv(
Expand Down

0 comments on commit b8220b7

Please sign in to comment.