Full-Stack · 2026
Loan Prediction API
Logistic Regression model chosen with GridSearchCV (Accuracy, F1, AUC) and deployed as a FastAPI service.
Model
- Logistic Regression selected over candidates via GridSearchCV
- Tuning scored on Accuracy, F1 and ROC-AUC
- Preprocessing pipeline (imputers + encoders + scaler) bundled with the model
Dataset
Loan eligibility dataset — applicant demographics, income, loan amount, credit history and approval outcome.
Results & metrics
- Model
- Logistic Regression
- Selection
- GridSearchCV (Acc · F1 · AUC)
- Serving
- FastAPI
Deployment steps
- 1Run GridSearchCV and pick the best estimator
- 2Serialize the full pipeline (preprocessing + model) with Joblib
- 3Serve POST /predict through FastAPI with Pydantic input schemas
- 4Containerize with Docker for deployment
Tech stack
- Scikit-learn
- GridSearchCV
- FastAPI