This project provides a web-based tool for predicting the probability of loan default using three machine learning models: Logistic Regression, XGBoost, and a Feedforward Neural Network (FFNN). The goal is to assist in evaluating borrower risk based on financial and demographic information. Read the paper here.
Try the Loan Default Risk Predictor on HuggingFace Spaces 🤗
- Interactive Gradio Interface: Easily input borrower data through dropdowns and number fields.
- Multi-Model Predictions: View default probabilities from Logistic Regression, XGBoost, and FFNN models.
- Derived Financial Metrics: Automatically computes ratios like Affordability Ratio, Total Interest, Debt-to-Income Ratio, and Average Borrowed per Credit Line.
- Data Preprocessing: Includes standardization and Box-Cox transformation for skewed features.
- Model Interpretability: Outputs both probability scores and binary classification (Default / No Default) for each model.
- Python (Pandas, NumPy, Scikit-learn, XGBoost, TensorFlow/Keras)
- Gradio for the web interface
- Joblib / Pickle for model and transformer serialization
- Python 3.9+
- Clone the repository:
git clone <repository-url>
- Install the required packages:
pip install -r requirements.txt
- Navigate to the project directory:
cd loan_default_prediction - Run the app:
python app.py