How entbappy/end-to-end-machine-learning-project-with-mlflow works
Project type and purpose
• This is an end-to-end machine learning project with two main facets:
• A modular ML pipeline (data ingestion → validation → transformation → training → evaluation) implemented in Python.
• A Flask-based web application (app.py + templates/static) exposing a simple UI for predictions.
• It uses MLflow for experiment tracking and is containerized (Dockerfile) with CI/CD workflows targeting AWS (ECR, EC2, GitHub Actions).
File structure
• Top-level files:
• app.py (Flask app entrypoint)
• main.py (CLI entrypoint to kick off training pipeline)
• Dockerfile, .github/workflows/main.yaml (CI/CD)
• config/config.yaml, params.yaml, schema.yaml (YAML-based configuration, hyperparameters, data schema)
• src/mlProject:
• components/ (data_ingestion.py, data_validation.py, etc.)
• pipeline/ (orchestrator scripts for each stage + a prediction pipeline)
• config (configuration manager), entity (data classes), constants, utils
• research/: Jupyter notebooks for prototyping each pipeline stage
• templates/ + static/: Flask UI (index.html, results.html, CSS, JS)
README for additional insights
• Describes how to configure config.yaml, schema.yaml, params.yaml
• Outlines a 9-step workflow: update configs, components, pipeline, then run main.py or app.py
• Mentions MLflow tracking server (locally or via DagsHub)
• Details AWS CI/CD: build Docker image → push to ECR → self-hosted runner on EC2 → deploy container
Detail
• Every pipeline component and how it’s invoked
• How configuration YAMLs propagate through the system
• MLflow tracking URI and credentials as an external connector
• CI/CD workflow as a side pipeline feeding into AWS