Syed Zulqarnain Hassan.

GitHub ↗

Live model [todo]

A credit-default risk model, shipped like a product.

Enter six months of statements and repayment history for a cardholder; the model returns the probability of default next month and a decision at a threshold chosen on validation data.

Demonstration system trained on the 2005 Taiwan credit-card dataset (UCI id 350). Not a U.S. underwriting model. Do not use it for real credit decisions.

Receipts

Measured on the held-out split.

Every number on this page is read from a file the pipeline wrote; nothing is typed by hand. Each tile links to that file.

Test split, n = [todo]

Try it

Score an applicant.

Three real applicants from the held-out split are preloaded. Change any field and submit; the API validates every value and returns a probability.

Presets load from the API: [todo]

Account

Credit limit is the line of credit in NT dollars, including family supplementary credit. Education uses the dataset codes: 1 graduate school, 2 university, 3 high school, 4 other.

Repayment status

One code per statement for the last six months. -2 no consumption, -1 paid in full, 0 revolving credit, 1 to 8 months of delayed payment.

Bill amounts

Statement balance in NT dollars for each of the last six months. A negative value is a credit balance.

Payment amounts

Amount paid in NT dollars toward the previous statement, for each of the last six months. Zero means no payment was made that month.

POST /predict
Drivers

Top global drivers.

How much ROC-AUC drops when one feature is shuffled and the rest are left alone. Larger bars matter more to the model overall; this is not an explanation of a single prediction.

Loads from reports/importance.json through the API. [todo]

Permutation importance on the validation split. [todo]

Run it yourself

Same service, one command.

The image on GHCR contains the model, its version and metric receipts, the presets, and this page. The curl example posts the first preset above, so the payload is a real held-out applicant.

Docker
docker run -p 8000:8000 ghcr.io/zulqarnain-10/credit-risk-service:latest
Curl, first preset
curl -X POST http://127.0.0.1:8000/predict -H "Content-Type: application/json" -d '[todo]'