Skip to content
Back to projects

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

  1. 1Run GridSearchCV and pick the best estimator
  2. 2Serialize the full pipeline (preprocessing + model) with Joblib
  3. 3Serve POST /predict through FastAPI with Pydantic input schemas
  4. 4Containerize with Docker for deployment

Tech stack

  • Scikit-learn
  • GridSearchCV
  • FastAPI
M

drawing ideas into systems...