How atharv-1905/ibm-customer-churn-mlops works
This repository develops a churn classifier and serves predictions through a FastAPI endpoint. The training script loads the Telco spreadsheet, selects and preprocesses features, fits and evaluates a Logistic Regression pipeline, logs the run to MLflow, and saves the model for serving. The README documents Docker and Kubernetes deployment. The API and prediction implementation were not excerpted, so their internal calls are shown only where the README explicitly describes them; deployment links are likewise documentation-based.
Main entry points: app.py FastAPI service · train.py Model training · Dockerfile Docker image · k8s Kubernetes deployment
Components 12
Model development
- Churn dataset
data/Telco_customer_churn.xlsx - Feature preparation
src/train.py - Model training
src/train.py - Model evaluation
src/train.py - Saved pipeline
model/model.pkl
Prediction service
- FastAPI service
api/app.py - Prediction logic
src/predict.py
Deployment
- Docker image
Dockerfile - Kubernetes deployment
k8s
Experiment tracking
- MLflow tracking
Other components
- API client
- Deployment operator
Connections 13
- Churn dataset → Feature preparation: provides data
src/train.py - Feature preparation → Model training: prepares features
src/train.py - Model training → Model evaluation: predicts test set
src/train.py - Model training → MLflow tracking: logs run
src/train.py - Model training → Saved pipeline: saves pipeline
src/train.py - API client → FastAPI service: requests prediction
README.md - FastAPI service → Prediction logic: uses prediction logic
README.md - FastAPI service → Saved pipeline: loads model
README.md - FastAPI service → API client: returns prediction
README.md - Deployment operator → Docker image: builds image
README.md - Docker image → FastAPI service: packages service
README.md - Deployment operator → Kubernetes deployment: applies manifests
README.md - Kubernetes deployment → FastAPI service: deploys service
README.md