From b8220b75e579fa460c4a3e3ac7b5db1945427ee6 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Wed, 18 Dec 2024 00:04:49 -0600 Subject: [PATCH] ruff auto-formatting --- python-package/lightgbm/engine.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/python-package/lightgbm/engine.py b/python-package/lightgbm/engine.py index 898dbb91a16e..ccbb4376a89f 100644 --- a/python-package/lightgbm/engine.py +++ b/python-package/lightgbm/engine.py @@ -605,10 +605,7 @@ def _agg_cv_result( # [ # (, , mean(), , std_dev()) # ] - 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(