kcg-ai-monitoring/prediction
htlee 8f5152fc02 feat(prediction): Phase 2 PoC 2~5 — gear_violation/transshipment/risk/pair_trawl
런타임 override 완성 (params 인자 + 내부 상수 교체):
- gear_violation_g01_g06 (GEAR, tier 4)
  · G01~G06 점수 + signal_cycling(gap_min/min_count)
  · gear_drift_threshold_nm + fixed_gear_types + fishery_code_allowed_gear
  · _detect_signal_cycling_count 도입 (기존 _detect_signal_cycling 보존)

카탈로그 + 관찰 (DEFAULT_PARAMS 노출 + Adapter 집계, 런타임 교체는 후속 PR):
- transshipment_5stage (TRANSSHIP, tier 4) — 5단계 필터 임계
- risk_composite (META, tier 3) — 경량+파이프라인 가중치
- pair_trawl_tier (GEAR, tier 4) — STRONG/PROBABLE/SUSPECT 임계

각 모델 공통:
- prediction/algorithms/*.py: DEFAULT_PARAMS 상수 추가
- models_core/registered/*_model.py: BaseDetectionModel Adapter
- models_core/seeds/v1_<model>.sql: DRAFT seed (호출자 트랜잭션 제어)
- tests/test_<model>_params.py: Python ↔ 모듈 상수 ↔ seed SQL 정적 일치 검증

통합 seed: models_core/seeds/v1_phase2_all.sql (\i 로 5 모델 일괄 시드)

검증:
- 30/30 테스트 통과 (Phase 1-2 15 + dark 5 + Phase 2 신규 10)
- 운영 DB 5 모델 개별 + 일괄 seed dry-run 통과 (BEGIN/ROLLBACK 격리)
- 5 모델 모두 tier/category 정렬 확인: dark_suspicion(3) / risk_composite(3) /
  gear_violation_g01_g06(4) / pair_trawl_tier(4) / transshipment_5stage(4)

후속:
- transshipment/risk/pair_trawl 런타임 override 활성화 (헬퍼 params 전파)
- Phase 3 백엔드 API (DetectionModelController + 승격 엔드포인트)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 10:11:16 +09:00
..
algorithms feat(prediction): Phase 2 PoC 2~5 — gear_violation/transshipment/risk/pair_trawl 2026-04-20 10:11:16 +09:00
cache feat: prediction 알고리즘 재설계 + 프론트 CRUD 권한 가드 보완 (#29) 2026-04-13 11:08:11 +09:00
chat feat: S2 prediction 분석 엔진 모노레포 이식 2026-04-07 12:56:51 +09:00
data feat: prediction 알고리즘 재설계 + 프론트 CRUD 권한 가드 보완 (#29) 2026-04-13 11:08:11 +09:00
db feat(prediction): Phase 1-2 detection model registry + snapshot 관찰 보강 2026-04-20 08:07:29 +09:00
models feat(prediction): vessel_analysis_results 에 분석 시점 lat/lon 저장 2026-04-16 14:30:49 +09:00
models_core feat(prediction): Phase 2 PoC 2~5 — gear_violation/transshipment/risk/pair_trawl 2026-04-20 10:11:16 +09:00
output feat(detection): GEAR_IDENTITY_COLLISION 탐지 패턴 추가 2026-04-17 06:53:12 +09:00
pipeline refactor(prediction): 사이클 스테이지 에러 경계 도입 (Phase 0-1) 2026-04-17 11:28:30 +09:00
scripts feat(prediction): Phase 1-2 detection model registry + snapshot 관찰 보강 2026-04-20 08:07:29 +09:00
tests feat(prediction): Phase 2 PoC 2~5 — gear_violation/transshipment/risk/pair_trawl 2026-04-20 10:11:16 +09:00
config.py feat: prediction 알고리즘 재설계 + 프론트 CRUD 권한 가드 보완 (#29) 2026-04-13 11:08:11 +09:00
env.example feat: S2 prediction 분석 엔진 모노레포 이식 2026-04-07 12:56:51 +09:00
fleet_tracker.py feat(detection): GEAR_IDENTITY_COLLISION 탐지 패턴 추가 2026-04-17 06:53:12 +09:00
main.py feat(detection): DAR-03 어구 탐지 워크플로우 + 모선 검토 UI + 24h 리플레이 통합 2026-04-15 13:26:15 +09:00
requirements.txt feat: S2 prediction 분석 엔진 모노레포 이식 2026-04-07 12:56:51 +09:00
scheduler.py feat(prediction): Phase 1-2 detection model registry + snapshot 관찰 보강 2026-04-20 08:07:29 +09:00
time_bucket.py feat: S2 prediction 분석 엔진 모노레포 이식 2026-04-07 12:56:51 +09:00