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
Solo: data, modeling, app, CI
LiveProbability of default turned into decision-ready risk bands, live in the browser
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.
Credit risk is an asymmetric-cost domain: approving an applicant who defaults costs up to 5x more than the revenue gained from a successful repayment. Scoring well on balanced synthetic benchmarks does not protect capital; loan officers need calibrated default probabilities P(default | x) they can set hard underwriting thresholds against.
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.
Logistic Baseline
0.823
Validation ROC-AUC without resampling
Gradient Boosting
0.869
Held-out test ROC-AUC champion
During experimentation, synthetic minority oversampling (SMOTE) and naive class weighting artificially inflated training default rates from 6.7% to 50%. While this shifted raw classification boundaries, it broke probability calibration, making model scores uninterpretable as actual default odds. The final architecture relies on raw class priors combined with post-hoc probability calibration and cost-sensitive threshold tuning.
Champion vs. Resampling Audit (Validation Set, n = 30,000)
reports/resampling_check.csvvariant roc_auc pr_auc ks brier
Logistic, no resampling 0.8232 0.3542 0.514 0.0516
Logistic, class_weight=balanced 0.8247 0.3554 0.514 0.1529 # broken odds
Gradient boosting, no resampling [WIN] 0.8651 0.3936 0.572 0.0493 # shipped prior
Gradient boosting, SMOTE 0.8457 0.3504 0.540 0.0601 # rejectedScreenshots and schema diagrams exported from the live app or public repository. Select any frame to inspect at full resolution.
Applicant Scorecard & Explanation
Live Streamlit app showing predicted default odds, risk band assignment, and feature-level driver contributions at threshold 0.16.
Validation & Band Performance
Observed delinquency steps cleanly across Low (1.14%), Moderate (4.96%), High (12.81%), and Very High (38.98%) test bands.
Held-Out Calibration Curve
Decile calibration check across 30,000 test borrowers confirming predicted probabilities track actual defaults without SMOTE distortion.
Inspect the source code, tests, and CI configuration on GitHub.
Working on something similar, or want this build verified? Ask me anything.
Get in touch