Downloads · 30 days
0
Lyes930/home-credit-risk-model-v1
home-credit-risk-model-v1 is a tabular classification model from Lyes930. Use it for the tabular classification task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Downloads · 30 days
0
Access
Public
Updated Dec 7, 2025
Repo size
10.4 GB
Likes
1
Public
Click a slice to open those files.
.cbm10.4 GB · 100%
From the Hugging Face model README
This repository contains the complete source code, pretrained models, and documentation for a State-of-the-Art (SOTA) credit risk stability model. The solution was developed for the Home Credit - Credit Risk Model Stability competition, focusing on predicting default probability while maintaining performance stability over time.
| Metric | Score | Description |
|---|---|---|
| Stability Score | 0.67701 | Official competition metric (Gini with stability penalty). |
| AUC | 0.8308 | Raw predictive power (Single Fold). |
| Slope | ~0.00 | Performance degradation over time (near zero is ideal). |
This project is organized as a production-ready Python package with clear separation of concerns.
.
├── models/ # Pretrained CatBoost models (10GB+)
│ ├── catboost_fold_1.cbm
│ └── ...
├── src/ # Core source code
│ ├── data/ # Polars-based data pipeline & aggregation logic
│ ├── features/ # Feature engineering & adversarial selection
│ ├── models/ # Trainer wrapper for CatBoost/LGBM
│ └── validation/ # Stability-aware cross-validation splitters
├── notebooks/ # Experimentation labs (Jupyter)
│ ├── 01_baseline... # Initial feasibility study
│ ├── 02_feature... # Deep feature engineering (Depth 0/1/2)
│ ├── 05_champion... # FINAL Training script (GPU required)
│ └── ...
├── docs/ # Detailed technical reports
│ └── reports/ # Technical evolution, summary, and appendices
├── training_artifacts/ # Logs and OOF predictions
└── verify_model.py # Quick inference verification script
Clone the repository and install dependencies. Note that this repo uses Git LFS for model weights.
# Install Git LFS first
git lfs install
# Clone repository
git clone https://huggingface.co/Lyes930/home-credit-risk-model-v1
cd home-credit-risk-model-v1
# Install Python dependencies
pip install -r requirements.txt
Due to licensing, the raw dataset cannot be hosted here. Please download it from Kaggle:
csv_files or parquet_files folders inside a data/ directory in the root of this repo.Structure should look like:
data/
├── parquet_files/
│ ├── train/
│ └── test/
└── feature_definitions.csv
To verify the pretrained models and run predictions on the training data (as a smoke test):
python verify_model.py
This script will load the models from the root directory, generate features, and output the AUC score.
If you have a GPU environment, you can reproduce the training process:
notebooks/05_champion_optimization.ipynb.data/ directory is populated.This solution differentiates itself through robust engineering rather than complex ensembles:
Payment -> Contract -> User) to capture deep historical credit behavior.For a deep dive into the architectural decisions, please read the Technical Evolution Path.
If you use this code or ideas in your research, please cite:
@misc{home-credit-risk-v1,
author = {Lyes930},
title = {Home Credit - Credit Risk Model Stability Solution},
year = {2025},
publisher = {Hugging Face},
journal = {Hugging Face Model Hub},
howpublished = {\url{https://huggingface.co/Lyes930/home-credit-risk-model-v1}}
}
Special thanks to the Kaggle community and Home Credit Group for the challenging dataset.