Solo: data, modeling, app, CI
LiveCredio: Credit-Risk Scorecard
Probability of default turned into decision-ready risk bands, live in the browser
- 0.869 ROC-AUC
- 0.407 PR-AUC
- 150K borrowers
- 19 tests
Live Applicant ScoringProblem
Lenders don't need a leaderboard score. They need calibrated probabilities they can price. Predict the chance a borrower goes 90+ days past due within two years, then turn that probability into defensible risk bands.
Approach
Leak-free pipeline on 150,000 real borrower records, with special codes and 20% missing income handled inside the scikit-learn pipeline. I built a logistic scorecard baseline (0.823 ROC-AUC on validation) and a gradient-boosting model, then picked between them on a held-out test set, not on the leaderboard.
Results
- ROC-AUC 0.869 · PR-AUC 0.407 · KS 0.584 · Brier 0.0486
- Calibrated risk bands: observed default runs from 1.1% (safest band) to 39.0% (riskiest), with a cost-based approval threshold (0.16 at 5:1 FN:FP cost ratio)
- Tested class weights and SMOTE, then rejected both because they distorted predicted probabilities (Brier worsened from 0.0493 to 0.1398 and 0.0601)
- Streamlit app with per-applicant explanations, 19 unit tests, and GitHub Actions CI
Stack
- Python
- scikit-learn
- pandas
- Streamlit
- pytest
- GitHub Actions


