CLCreditLens
OverviewUnderwritingPortfolioMonitoringFair lendingGovernanceAI assistance

A portfolio project by Siddharth Hiraou. Every figure is generated from the model artifacts in the repository and reproducible with make train. Trained on synthetic data, not a real lender, and no real applicants.

For governance and audit

What this model is, and where it breaks

The document a validation committee asks for before a model is allowed to make real decisions. Generated from the training run itself: model catboost, spec 19cc7282140b4dd2, 2026-08-21T04:24:21+00:00.

The question this page answers

If someone asks in two years how a decision was made, can we answer?

Banking regulators expect every model in production to have a written owner, a stated purpose, known limitations and a monitoring plan, and expect the document to still be true. This one is generated from the artifacts rather than written by hand, because a governance document whose numbers have quietly drifted from the model is worse than having none: it will be believed.

Intended use

Estimates the probability that a consumer instalment loan reaches 90 days past due within 12 months of origination, and maps that to a 300 to 850 score and an approve / refer / decline decision under a configurable policy cutoff.

Out of scope: commercial lending, mortgages, collections prioritisation, pricing, and any use where the score is treated as a measure of a person rather than of a loan. The model has never been validated on those populations and its calibration would not transfer.

Not a decision-maker: the referral band exists because the applications nearest the cutoff are where the model is least certain and a human adds the most value.

Performance

Out-of-time test fold. Never touched during training, tuning or selection.

AUC

0.7913

baseline 0.7624

Gini

0.5826

baseline 0.5249

KS

0.4348

baseline 0.3818

Brier

0.11485

baseline 0.2066

PR-AUC

0.4652

prevalence 0.1681

Applications

16,276

Bad rate

16.81%

Score PSI

0.0174

Accuracy is reported nowhere in this project. At a 17% bad rate, “approve everyone” scores 83% and is worthless.

Training data and target

Target90+ DPD within 12 months of origination
Indeterminate30 to 89 DPD, excluded from training, scored at evaluation
CensoredPerformance window not closed, dropped entirely, even if already delinquent
SplitOut-of-time by origination date; never random
Imbalancescale_pos_weight and threshold tuning. SMOTE is not used anywhere
Features221 built, 72 selected, 47 monotonically constrained
CalibrationSmoothed isotonic on a held-out fold carved from the tail of train

Limitations

The things a validation team would find, stated first.

  • Trained on synthetic data

    Both Kaggle sources require an authenticated download, and Home Credit additionally requires accepting competition rules in a browser. A generator emitting the same schemas stands in. Every number here describes the model on that generator, not on real borrowers.

  • Fails the four-fifths rule on age

    Disparate impact 0.3843; the 18 to 24 band is approved at 38% of the rate of the 65+ band. No legally deployable mitigation reaches 0.80.

  • Home Credit has no application date

    It is a single snapshot with a prebuilt binary target, so genuine out-of-time evaluation on it is impossible. That work runs on Lending Club, which carries a real issue date.

  • The GBDT's margin over the scorecard is thin

    0.0044 AUC. A shop that values a printable points table over that margin should ship the scorecard, and the argument would be reasonable.

  • Counterfactuals rarely help

    Only 1 of 120 declines can be reversed by any feasible action, because most declines are driven by credit history nobody can change quickly.

  • No automated promotion gate yet

    Retraining, drift-triggered retraining and the promotion gate are Phase 6. Today promotion is a manual decision.

Ethical considerations

Age, sex, family status and dependents are suppressed from every disclosure. The strongest feature embeds age through an interaction; it surfaces as a credit-bureau-score reason so the applicant is told something actionable and no protected attribute is ever named as a basis for denial.

The model prioritises calibration by group over equalized odds. Those cannot both hold when base rates differ, and a model that is systematically wrong about one group's risk does more direct harm than one whose selection rates differ for reasons the outcomes support. That is a judgement, and it should be revisited by counsel and a fair-lending specialist before any real use.

SHAP attributions are not causal. Nothing in the disclosure language implies that changing a feature would change the applicant's underlying risk.

Serving

What is actually deployed.

PredictionONNX Runtime, 0.169 ms p99 at batch size 1
CalibratorSmoothed isotonic, applied in Python after the ONNX graph
ExplainabilityTreeSHAP on the native booster; additivity error 6.7e-15
End-to-end46 ms p99 at 16 concurrent users, 4 workers
AuditFull feature vector, reason codes, model version and spec fingerprint per decision

Top features by global SHAP

Mean absolute contribution over the out-of-time fold.

FeatureMean |SHAP|Share
EXT_mean_x_age0.21779.09%
STAB_employed_years0.14596.09%
EXT_SOURCE_20.13995.84%
REGION_RATING_CLIENT0.13035.44%
RATIO_annuity_to_income0.10994.59%
BB_late_share_total0.09523.97%
EXT_mean0.08153.40%
INST_late_share_total0.07853.27%
DAYS_BIRTH0.06182.58%
RATIO_credit_to_income0.05562.32%
EXT_max0.05402.25%
RATIO_residual_income_per_member0.05242.19%
Model card v1Reason code mapping v1Feature spec 19cc7282140b4dd2

Step 6 of 7

Next · AI assistance

Where does AI help safely?

→