End-to-end ML pipeline: Random Forest (82%) + MLflow tracking → FastAPI REST API → Docker containerized → CI/CD with GitHub Actions
Predict whether a Titanic passenger would survive based on their details — class, age, sex, fare, and family size.
Trained a Random Forest classifier on 891 passengers with MLflow experiment tracking. Served the best model (82% accuracy) via a FastAPI REST API. Containerized with Docker. Automated testing with pytest and CI with GitHub Actions.
Raw Data → Feature Engineering → Model Training (MLflow) → FastAPI /predict → Docker Container → GitHub Actions CI
docker pull USERNAME/titanic-api:v1.0 docker run -p 8000:8000 USERNAME/titanic-api:v1.0
git clone https://github.com/icy2701/titanic-ml-api.git cd titanic-ml-api pip install -r requirements.txt uvicorn src.main:app --reload
Open: http://localhost:8000/docs
pytest tests/ -v
cd notebooks mlflow ui --port 5001 Open: http://localhost:5001
