Commit 3f67253
committed
Add empirical weight calibration for scoring policy
- Implemented `WeightCalibrator` for fitting OLS regression to map score breakdowns to reference scores.
- Introduced `calibrate_from_processed_artifacts` for convenience in reading existing artifacts and running calibration.
- Added detailed docstrings and usage examples in `calibration.py`.
- Created unit tests for calibration logic, including OLS helpers, weight normalization, and edge cases.
- Developed tests for Markdown export functionality, ensuring proper formatting and content generation.1 parent 29f72fc commit 3f67253
5 files changed
Lines changed: 1624 additions & 1 deletion
File tree
- src/portfolio_auditor
- exports
- scoring
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
| 9 | + | |
0 commit comments