From 629f7b334de110eb6f387ff8ef1307bce1ad2ab3 Mon Sep 17 00:00:00 2001 From: toto Date: Thu, 9 Apr 2026 22:48:21 +0200 Subject: [PATCH] fix(bot-detector): rename _compute_drift_score to public, fix import Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- services/bot-detector/bot_detector/scoring.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/bot-detector/bot_detector/scoring.py b/services/bot-detector/bot_detector/scoring.py index 34d8667..09dd0e1 100644 --- a/services/bot-detector/bot_detector/scoring.py +++ b/services/bot-detector/bot_detector/scoring.py @@ -36,8 +36,8 @@ _feature_warning_cache: dict = {} # A1 — DÉTECTION DE DÉRIVE CONCEPTUELLE # ═══════════════════════════════════════════════════════════════════════════════ -def _compute_drift_score(baseline_stats: dict, current_baseline: pd.DataFrame, - features: list) -> float: +def compute_drift_score(baseline_stats: dict, current_baseline: pd.DataFrame, + features: list) -> float: """Compare la distribution actuelle de la baseline humaine avec celle de l'entraînement. Utilise le test de Kolmogorov-Smirnov bilatéral par feature. La distribution