Skip to content
Back to projects
Data Science Freelance project · with two INSEA students · 2026

Credit scoring

Decide whether to grant a loan from the applicant’s file, with an explainable model and an economically justified decision threshold.

Private code / team project
0,76 AUC (Gini 0.52)
307 511 loan applications (Home Credit)
7 models compared

Problem

A lender has to accept or reject applications while limiting defaults, without turning away good applicants for no reason. The model must be explainable to business teams, and the decision threshold must reflect the real cost of an error.

Data

  • 307,511 loan applications from the Home Credit dataset

Approach

  • 7 models compared, from logistic regression to CatBoost
  • Decision threshold set from a cost matrix
  • Explainability with SHAP and logistic-regression odds ratios
  • Probability calibration checked with the Brier score
  • My part: the decision application, a FastAPI API and a Next.js interface, containerised with Docker
  • In the app: CatBoost model, default probability, decision and SHAP factors; agent and administrator areas with request history

Results

  • AUC of 0.76 (Gini 0.52) for the best model, versus 0.75 for a well-prepared logistic regression

What I would improve

  • Monitor data drift and model calibration once the application is in use
  • Offer a demo account with fictitious applications so the app can be tried without real data
Enlarged image