From 1033654c82bb638c8e9b5a209bf6640a17a4f30b Mon Sep 17 00:00:00 2001 From: htlee Date: Sat, 4 Apr 2026 09:09:36 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=AA=A8=EC=84=A0=20=EC=B6=94=EB=A1=A0?= =?UTF-8?q?=20=EC=A0=90=EC=88=98=20=EA=B0=80=EC=A4=91=EC=B9=98=20=EC=A1=B0?= =?UTF-8?q?=EC=A0=95=20=E2=80=94=20100%=EB=8A=94=20DIRECT=5FPARENT=5FMATCH?= =?UTF-8?q?=20=EC=A0=84=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: china_bonus(15%) + prior(20%) 가산으로 일반 후보 23.6%가 100% 도달 - china_bonus: 0.15 → 0.05, 적용 조건: pre >= 0.30 → 0.50 - episode_prior: 0.10 → 0.05 - lineage_prior: 0.05 → 0.03 - label_prior: 0.10 → 0.07 - total_prior_cap: 0.20 → 0.10 결과: 일반 후보 최대 ~93% (라벨 있으면 ~98%), 100%는 직접 모선 일치만 Co-Authored-By: Claude Opus 4.6 (1M context) --- prediction/algorithms/gear_parent_episode.py | 8 ++++---- prediction/algorithms/gear_parent_inference.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/prediction/algorithms/gear_parent_episode.py b/prediction/algorithms/gear_parent_episode.py index 09463ba..333d982 100644 --- a/prediction/algorithms/gear_parent_episode.py +++ b/prediction/algorithms/gear_parent_episode.py @@ -23,10 +23,10 @@ _LABEL_PRIOR_WINDOW_DAYS = 30 _CONTINUITY_SCORE_THRESHOLD = 0.45 _MERGE_SCORE_THRESHOLD = 0.35 _CENTER_DISTANCE_THRESHOLD_NM = 12.0 -_EPISODE_PRIOR_MAX = 0.10 -_LINEAGE_PRIOR_MAX = 0.05 -_LABEL_PRIOR_MAX = 0.10 -_TOTAL_PRIOR_CAP = 0.20 +_EPISODE_PRIOR_MAX = 0.05 +_LINEAGE_PRIOR_MAX = 0.03 +_LABEL_PRIOR_MAX = 0.07 +_TOTAL_PRIOR_CAP = 0.10 def _clamp(value: float, floor: float = 0.0, ceil: float = 1.0) -> float: diff --git a/prediction/algorithms/gear_parent_inference.py b/prediction/algorithms/gear_parent_inference.py index e7acf92..14eda43 100644 --- a/prediction/algorithms/gear_parent_inference.py +++ b/prediction/algorithms/gear_parent_inference.py @@ -51,8 +51,8 @@ _MIN_AUTO_PROMOTION_STABLE_CYCLES = 3 _MIN_AUTO_PROMOTION_SCORE = 0.72 _MIN_AUTO_PROMOTION_MARGIN = 0.15 _MIN_REVIEW_REQUIRED_SCORE = 0.60 -_MIN_PREFIX_BONUS_SCORE = 0.30 -_CHINA_MMSI_PREFIX_BONUS = 0.15 +_MIN_PREFIX_BONUS_SCORE = 0.50 +_CHINA_MMSI_PREFIX_BONUS = 0.05 _CHINA_MMSI_PREFIXES = ('412', '413') _TRACK_SUPPORT_POINT_TARGET = 12 _TRACK_SUPPORT_SPAN_TARGET_MINUTES = 90.0