Downloads · 30 days
0
JenniferAnnKok/ACRIE
ACRIE is a machine learning model from JenniferAnnKok. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
An interactive credit scoring app built with XGBoost, SMOTE, and SHAP explainability — part of the Investec Portfolio Project.
Downloads · 30 days
0
Access
Public
Updated May 23, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py22 KB · 84%
From the Hugging Face model README
An interactive credit scoring app built with XGBoost, SMOTE, and SHAP explainability — part of the Investec Portfolio Project.
Fill in applicant details across the four input tabs:
Click Predict default risk
The app returns:
| Property | Value |
|---|---|
| Algorithm | XGBoost (hist tree method) |
| Imbalance handling | SMOTE (sampling_strategy=0.3) |
| Hyperparameter search | RandomizedSearchCV (15 iter, 3-fold CV) |
| Evaluation metric | ROC-AUC |
| Target threshold | 0.27 (cost-optimal, not default 0.50) |
| Explainability | TreeSHAP via shap library |
Upload these three files (produced by the training pipeline) to the Space's file system:
home_credit_xgb_model.pkl ← joblib.dump(best_xgb, ...)
home_credit_threshold.pkl ← joblib.dump(cost_optimal_thresh, ...)
home_credit_features.pkl ← joblib.dump(X_train.columns.tolist(), ...)
The app detects them automatically on startup. If they are absent it falls back to a demo model trained on synthetic data so the Space stays functional.
The cost-optimal threshold (default 0.27) minimises expected credit loss under:
| Table | Rows | Purpose |
|---|---|---|
application_train.csv | 307 511 | Main application features |
bureau.csv | 1 716 428 | External credit history |
previous_application.csv | 1 670 214 | Past Home Credit applications |
installments_payments.csv | 13 605 401 | Repayment behaviour (3M sampled) |