Downloads · 30 days
0
gal-co/credit-default-prediction-randomforest-galcohen
credit-default-prediction-randomforest-galcohen is a machine learning model from gal-co. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Data Science Course —Project Author: Gal Cohen video: https://www.youtube.com/watch?v=1-XZN4MaLoE ---
Downloads · 30 days
0
Access
Public
Updated Dec 6, 2025
Repo size
187 MB
Likes
0
Public
Click a slice to open those files.
.pkl - regression149 MB · 78%
From the Hugging Face model README
This project builds a complete machine learning pipeline for predicting credit card default risk.
It includes full EDA, cleaning, feature engineering, clustering, model comparisons, and exporting the best model.
Below are some of the key visuals generated throughout the analysis.






Source: UCI Default of Credit Card Clients dataset
Rows: 30,000 originally → 28,070 after cleaning
Target: DEFAULT
Key cleaning operations:
A detailed exploration was performed including:
PAY_0…PAY_6)Created multiple new predictive features:
TOTAL_BILL, TOTAL_PAY, BILL_PAY_RATIO
AVG_DELAY, MAX_DELAY
BILL_TREND
CLUSTER_IDDIST_K0…DIST_K4)DIST_TO_CENTROIDThese features significantly improved model performance.
Used linear regression predictions to create a continuous target, then applied a median split, resulting in a perfectly balanced classification target:
| Class | Percent |
|---|---|
| 0 | 50% |
| 1 | 50% |
| Metric | Score |
|---|---|
| Accuracy | 0.94 |
| Precision | 0.96 |
| Recall | 0.92 |
| F1-score | 0.94 |
| ROC-AUC | 0.785 |
Reasons for winning: