Completed coursework extension · Mar – Jun 2026
Movie Revenue Prediction MLOps Pipeline
A repeatable training pipeline and containerized API for predicting a movie’s revenue tier from TMDB metadata.
- Python
- XGBoost
- FastAPI
- MLflow
- Docker
1,153,446raw movie records reported in the original study
The problem
Explore how structured movie metadata predicts above-median revenue and make the trained classifier usable through a reproducible service.
Technical approach
The current pipeline splits cleaned rows before defining the revenue threshold. The training split determines the threshold and fits the preprocessing. MLflow records holdout metrics, while FastAPI loads the saved model and matching feature artifacts. GitHub Actions tests the service and verifies the Docker image before publishing it to GitHub Container Registry.
- TMDB CSV
- Train and holdout split
- XGBoost and fitted preprocessing
- MLflow and saved artifacts
- FastAPI in Docker
My contribution
I built the XGBoost training pipeline, reusable preprocessing, MLflow tracking, containerized FastAPI service, and automated verification, extending the original course study.
Results and evaluation
- The original course report describes 1,153,446 raw TMDB records before filtering.
- An earlier XGBoost run reported 0.904 ROC-AUC and 0.825 F1. ROC-AUC summarizes discrimination across thresholds. F1 combines precision and recall at the classification threshold. That run formed labels before splitting, so its scores predate the evaluation fix.
- The corrected pipeline passed 13 automated tests. A separate Docker smoke test verified HTTP inference using an XGBoost model trained on fixture data. These checks cover pipeline behavior and serving.
Limitations
The archived dataset contains a Git LFS pointer. An authorized copy of the exact TMDB file is needed to reproduce results with the corrected evaluation. The service predicts a relative revenue class and is documented for local use.