Logistic Regression and Random Forest models trained on the Wisconsin Breast Cancer dataset, served via a FastAPI REST endpoint, containerized with Docker, and deployed to Google Cloud Run — a full production ML pipeline.
A linear model that learns decision boundaries in feature space. Strong baseline for binary medical classification — weights are directly interpretable as feature importance.
An ensemble of decision trees that votes on the final prediction. Captures non-linear feature interactions and provides built-in feature importance ranking.
Models trained locally, serialized with joblib. Both LR and RF packaged as model artefacts alongside the API.
Async REST service with automatic Swagger UI. Input validation via Pydantic. Returns prediction and confidence score.
Reproducible build. All dependencies, model artefacts, and the app bundled into a single portable image.
Serverless container hosting. Scales to zero when idle, auto-scales under load. Public HTTPS endpoint, no server management.
| Category | Tool | Purpose |
|---|---|---|
| Dataset | Wisconsin Breast Cancer UCI / sklearn | 569 samples, 30 features, binary classification |
| Models | scikit-learn LR + RF | Logistic Regression and Random Forest classifiers |
| API | FastAPI + Pydantic | REST endpoint with automatic validation and Swagger docs |
| Server | Uvicorn | ASGI server for FastAPI |
| Container | Docker python:3.11-slim | Reproducible, portable deployment image |
| Cloud | Google Cloud Run serverless | Zero-ops container hosting with auto-scaling |
| Serialization | joblib | Save and load trained model artefacts |