02 — PROBLEM
Problem
Build a modular classification engine that can compare several candidate algorithms while keeping preprocessing and inference paths consistent.
PROJECT / 03
A credit risk classification engine built around applicant financial and demographic data. Five algorithms were benchmarked before the selected models were serialized and exposed for production inference.
01 — SYSTEM ARCHITECTURE
The case study keeps architecture data-driven too. Each project can describe a different system path without changing the renderer.
Applicant financial + demographic data
Categorical encoding + feature scaling
Train/test split
5-model benchmark
Serialized selected model
FastAPI + Pydantic → Docker → AWS EC2
02 — PROBLEM
Build a modular classification engine that can compare several candidate algorithms while keeping preprocessing and inference paths consistent.
03 — APPROACH
Use a preprocessing pipeline for categorical encoding, feature scaling, and train/test splitting across income, credit-history, and property-area features, then benchmark five algorithms.
04 — RESULTS
Gaussian Naive Bayes and SVC both achieved 83.12% validation accuracy in the benchmark.
05 — IMPLEMENTATION
Compared Random Forest, Gaussian Naive Bayes, Decision Tree, KNN, and SVC.
Serialized the selected model for production inference.
Added Pydantic request validation at the FastAPI boundary.
Containerized the service with Docker and hosted it on AWS EC2.
06 — STACK & DEPLOYMENT
FastAPI + Pydantic + Docker + AWS EC2