https://github.com/jgavinb/loan-model-fastapi
FastAPI deployment of a loan approval model.
https://github.com/jgavinb/loan-model-fastapi
Last synced: 2 months ago
JSON representation
FastAPI deployment of a loan approval model.
- Host: GitHub
- URL: https://github.com/jgavinb/loan-model-fastapi
- Owner: jgavinb
- Created: 2025-02-22T21:44:33.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-08T16:10:59.000Z (2 months ago)
- Last Synced: 2025-03-08T17:20:29.076Z (2 months ago)
- Language: Jupyter Notebook
- Size: 257 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Loan Default Prediction API
A REST API for predicting loan default risk using a machine learning model trained with imbalanced data handling techniques. Built with FastAPI, imbalanced-learn, and Joblib.
## Features
- **Imbalanced Data Handling**: Utilizes various oversampling techniques from `imblearn` (e.g., SMOTE, ADASYN) to address class imbalance.
- **Model Persistence**: Trained model and scaler saved using `joblib` for efficient storage and loading.
- **REST API**: FastAPI-powered endpoint for real-time predictions.
- **Scalable Inputs**: Input data is scaled using a pre-trained scaler before prediction.## Installation
1. **Clone the repository**:
```bash
git clone https://github.com/jgavinb/loan-default-prediction.git
cd loan-default-prediction