DOCS/journey/plans/260112_bayesian_valuation_remaining_tasks.md

46 lines
2.0 KiB
Markdown
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.

# 베이지안 스타트업 가치평가 - 남은 작업
**날짜**: 2026-01-12
**관련 문서**: `archive/251016_bayesian_startup_valuation.md`
---
## 개요
베이지안 스타트업 가치평가 프레임워크 Phase 1-3 기본 구조 완료 후 남은 작업
---
## Phase 2: 추가 작업
### 목표
Neo4j에서 실제 유사 기업 투자금액(invstSumValText)을 Likelihood로 사용해 `calculate_posterior_with_likelihood` 함수 통합
### 작업 항목
1. **Neo4j 쿼리 수정**: `get_dynamic_prior_from_neo4j` 함수의 Cypher 쿼리에서 `s.invstSumValText AS invstSumValText` 추가 (RETURN 절)
2. **투자금액 파싱 함수 추가**: `parse_investment_amount` 함수 구현 ("3.0억원" → 3.0, 억원 단위 float) - `parse_revenue` 함수와 유사한 패턴
3. **Likelihood 데이터 추출 함수 추가**: Neo4j 결과에서 `invstSumValText` 파싱하여 List[float] 반환 (최소 3개 이상 필요)
4. **valuate_startup 함수 통합**: 기존 `calculate_posterior` 호출 대신 `calculate_posterior_with_likelihood` 사용 (Likelihood 데이터가 있을 때만, 부족 시 기존 방식 유지)
### 코드 작성 원칙 준수
- 계층 분리: 모든 작업이 `services/startup_valuation.py`에 있으며 services → state 의존성 흐름 유지
- 중복 코드 제거: `parse_investment_amount``parse_revenue`와 유사 패턴으로 구현 (작업 항목 2번)
- 함수형 설계: 파싱 함수는 순수 함수로 구현, `valuate_startup` 통합은 기존 함수 재사용
---
## Phase 3: 추가 작업
- Beta(α,β) 분포 업데이트 로직 (현재는 mu, sigma만 저장)
- 30일 주기 재계산 스케줄러 (scheduler_repository 활용)
- 신규 투자 데이터 자동 재학습 파이프라인
---
## 참고
- 기본 구조 구현: `troubleshooting/260112_bayesian_valuation_phase1_implementation.md`
- Phase 2-3 구현: `troubleshooting/260112_bayesian_valuation_phase2_3_implementation.md`
- 원본 계획 문서: `plans/archive/251016_bayesian_startup_valuation.md`