From 54b03321cbe1f915c60b8511e6bcbebe32c084b1 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Mon, 25 May 2026 03:22:41 +0800 Subject: [PATCH] =?UTF-8?q?bias=20correction=20=E6=96=B0=E5=A2=9E=20BIAS?= =?UTF-8?q?=5FDEBUG=20=E6=97=A5=E5=BF=97=E6=8E=92=E6=9F=A5=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E6=98=AF=E5=90=A6=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/analysis_service.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/analysis_service.py b/web/analysis_service.py index 1893b127..4033d051 100644 --- a/web/analysis_service.py +++ b/web/analysis_service.py @@ -1547,6 +1547,12 @@ def _analyze( max_correction_clamped = max(-max_correction, min(max_correction, max_so_far_excess * max(0.3, weight))) blended_correction = hourly_correction * 0.6 + max_correction_clamped * 0.4 + logger.info( + "BIAS_DEBUG city={} hour={} current={} model_hourly={} hourly_bias={:.1f} " + "max_excess={:.1f} weight={:.2f} correction={:.1f} deb_before={}", + city, _local_hour, _current_temp, model_hourly_temp, hourly_bias, + (_max_so_far or _current_temp) - deb_val, weight, blended_correction, deb_val, + ) deb_val = round(deb_val + blended_correction, 1) if mu is not None: mu = round(mu + blended_correction, 1)