← All projects
Completed Personal Project Nov 2026

Credit Risk ML Platform

Predicts the probability that a consumer loan defaults, then turns it into decisions: risk grades, approval cut-offs, collections priorities and drift alerts. The model, API and dashboard below are live.

Test AUC
0.769
Gini
0.537
Lift in the riskiest 10%
3.5x
Loans modelled
307,511
PythonLightGBMscikit-learnSHAPMLflowFastAPIStreamlitDockerGitHub Actions

Model monitoring

Population stability of scores and features, with simulated recession and bureau-deterioration scenarios.

Open full screen ↗

About this page

Checks whether today's applicants still look like the ones the model was built on, using the Population Stability Index (PSI). Simulated scenarios show which alarms fire. They have no outcomes, so only data and score drift are shown.

Live demo on free hosting: after a quiet spell the dashboard and API take up to a minute to wake up (choose “Yes, get this app back up” if asked). It scores 5,000 simulated applications, because the Home Credit data can't be redistributed; the model does somewhat less well on them (AUC about 0.70) than on the real data (0.769). Amounts are in the lender's undisclosed local currency.

Controls and what they change

ControlWhat it doesWhat changes when you use it
Current populationHold-out portfolio, a simulated scenario, or your own CSV (not stored).Sets what is compared with the reference.
ScenarioIncome shock, bureau deterioration, thin-file growth, recession or custom.Presets fill the sliders. Custom unlocks them.
Income shockScales incomes (−50% to +50%).Income PSI alerts, but the score barely moves (score PSI 0.001 on the real data).
Bureau score shiftMoves all bureau scores (−0.30 to +0.30).Negative: PDs rise, grades shift to D and E, score PSI alerts (0.27 on the real data).
Missing bureau scoresRemoves scores for a share of applicants (0–80%).Missing-rate alerts fire even when PSI stays low.

What the numbers and charts mean

Shown on the pageWhat it meansHow to read it
Score PSIShift in the PD distribution.Below 0.10 stable, 0.10–0.25 monitor, above 0.25 act.
Mean PDAverage PD now, vs the reference.Up means riskier applicants.
Features in alert and warningInputs past the drift thresholds.Investigate these first.
Observed default rateActual default rate (hold-out portfolio only).Simulated data has no outcomes.
Score distributionPDs of the reference and current populations.A shift right means riskier applicants.
Grade migrationShare in each grade, reference vs current.A move towards D and E is a warning.
Feature stabilityPSI and missing rates per input.Status is the worse of the PSI and missing-rate checks.