Files
LifetimePD/config.yaml
Variet Agent 8af743e6f3 feat(data): parse 3-agency PDF transition matrices to CSV #task-290
- New: data/parse_pdf_matrices.py (KR/NICE/SCI PDF parser)
  - KR: text-based parser (space-separated numbers + dashes)
  - NICE: text-based parser (clean numeric format)
  - SCI: pdfplumber table extraction (column-position-aware)
  - WR redistribution, B이하→B mapping, CCC extrapolation from PD patterns
- Modified: data/transition_matrices.py (added source='real' loader)
- Modified: config.yaml (data.transition_source: 'real')
- Modified: main.py (reads transition source from config)
- Output: 112 CSV files (KR/NICE/SCI/AVG × 28 years)
2026-03-11 01:07:27 +09:00

57 lines
1.9 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ============================================
# Lifetime PD Model Configuration
# ============================================
# BOK ECOS API
ecos:
api_key: "C5220CGY8FYFDN43B7ON"
base_url: "https://ecos.bok.or.kr/api"
# 주요 통계코드 (검증 완료 2026-03-10)
stat_codes:
gdp_growth: "902Y015" # 국제 주요국 경제성장률 / ITEM: KOR
unemployment: "901Y027" # 경제활동인구 / ITEM: I61BC (실업률)
base_rate: "722Y001" # 한국은행 기준금리 / ITEM: 0101000
cd_rate: "721Y001" # 시장금리 / ITEM: 2010000 (CD 91일)
cpi: "901Y009" # 소비자물가지수 / ITEM: 0 (총지수, level→YoY% 변환)
composite_leading: "901Y067" # 경기종합지수 / ITEM: I16A (선행, 월별→연평균)
# 전이행렬 데이터 소스
data:
transition_source: "real" # "real" (3사 실제) | "builtin" (내장 샘플)
transition_dir: null # null이면 기본 data/real/
# 모형 파라미터
model:
# 자산상관계수 (Basel IRB 기준 0.12~0.24, 기업 평균 ~0.20)
rho: 0.20
# 신용등급 체계 (한국 3사 공통)
rating_grades: ["AAA", "AA", "A", "BBB", "BB", "B", "CCC", "D"]
# 시나리오 설정
scenarios:
upside:
name: "호황 (Upside)"
z_multiplier: 1.0 # Zt = μ + 1.0σ
weight: 0.20 # ECB 방식 확률가중치
base:
name: "중립 (Base)"
z_multiplier: 0.0
weight: 0.50
downside:
name: "불황 (Downside)"
z_multiplier: -1.5 # Fed DFAST 역사적 하위 5%
weight: 0.30
# 50년 수렴 메커니즘
convergence:
pit_horizon: 5 # PIT 적용 기간 (년)
transition_horizon: 10 # TTC로의 전환 완료 기간 (년)
mean_reversion_lambda: 0.3 # Mean-reversion 속도
total_horizon: 50 # 총 예측 기간 (년)
# 출력 설정
output:
save_dir: "results"
figure_dpi: 150
figure_format: "png"