From f290523ce10db646ddbe8f2c744db59c9f985f1d Mon Sep 17 00:00:00 2001 From: KoalaTrapLord <265133236+KoalaTrapLord@users.noreply.github.com> Date: Sat, 21 Mar 2026 15:47:47 -0400 Subject: [PATCH] fix(ml): replace undefined 'log' with 'logger' in labeler.py --- ml/actions/labeler.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ml/actions/labeler.py b/ml/actions/labeler.py index 10278ae..d3b7afd 100644 --- a/ml/actions/labeler.py +++ b/ml/actions/labeler.py @@ -240,12 +240,12 @@ def print_label_distribution(labels: np.ndarray) -> Dict[str, int]: dist[action.value] = count total = len(labels) - log.info(f"\n{'Action':<25} {'Count':>8} {'Pct':>8}") - log.info("─" * 43) + logger.info(f"\n{'Action':<25} {'Count':>8} {'Pct':>8}") + logger.info("─" * 43) for action_name, count in sorted(dist.items(), key=lambda x: -x[1]): pct = (count / total * 100) if total > 0 else 0 - log.info(f" {action_name:<23} {count:>8} {pct:>7.1f}%") - log.info(f"{'─' * 43}") - log.info(f" {'TOTAL':<23} {total:>8}") + logger.info(f" {action_name:<23} {count:>8} {pct:>7.1f}%") + logger.info(f"{'─' * 43}") + logger.info(f" {'TOTAL':<23} {total:>8}") return dist