Inspiration

Credit teams cannot price loans from an uncalibrated leaderboard score. They need calibrated default probabilities, explicit handling of missing income and special delinquency codes, and a decision threshold tied to business loss assumptions.

What it does

Credio models the probability that a borrower becomes 90+ days past due within two years using the 150,000-borrower Give Me Some Credit dataset (6.7% default rate). It exposes an interactive Streamlit scoring app with per-applicant risk explanations, calibration diagnostics, and four risk bands.

How I built it

  • Leak-free preprocessing: Built a stratified 60/20/20 train/validation/test pipeline where CreditFeatureBuilder fits medians, caps, and special-code handling (codes 96/98 and 19.8% missing MonthlyIncome) on training splits only.
  • Model selection without resampling distortion: Compared logistic regression (0.8232 validation ROC-AUC) against histogram gradient boosting (0.8651 validation ROC-AUC). Tested class weights and SMOTE, then rejected both because they inflated Brier score and distorted predicted probabilities.
  • Deployment and testing: Packaged the trained artifact in a Streamlit app with Docker support, 19 unit tests on synthetic data, and GitHub Actions CI.

Verified Results (Held-Out Test Set, 30,000 Borrowers)

  • ROC-AUC: 0.869 (5-fold CV: 0.864 +/- 0.004)
  • PR-AUC: 0.407 (baseline 0.067)
  • KS statistic: 0.584
  • Brier score: 0.0486
  • Risk band separation: Observed default rates run from 1.1% (Low, < 3% PD) to 5.0% (Moderate, 3-8%), 12.8% (High, 8-20%), and 39.0% (Very high, >= 20%).

Built With

Share this project:

Updates