bias correction 新增 BIAS_DEBUG 日志排查修正是否生效

This commit is contained in:
2569718930@qq.com
2026-05-25 03:22:41 +08:00
parent c0df56e7b8
commit 54b03321cb
+6
View File
@@ -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)