# shubham-s151/end-to-end-mlops-pipeline architecture

> Architecture diagram of the GitHub repository shubham-s151/end-to-end-mlops-pipeline, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shubham-s151/end-to-end-mlops-pipeline
- Repository: https://github.com/shubham-s151/end-to-end-mlops-pipeline

## Overview

This repository is an end-to-end ML project focused on credit-card fraud prediction, with telecom churn also represented in its analysis materials. The documented user workflow is dataset exploration and ingestion through validation, feature preparation, model training/evaluation, then Streamlit single-record or CSV predictions. The training pipeline assembles feature engineering, preprocessing, and a classifier; the Streamlit app loads a serialized pipeline. EDA, tracking, FastAPI, and monitoring are additional capabilities, but several MLOps modules are explicitly in progress or placeholders. Edges use README-level workflow evidence where source wiring was not shown.

Main entry points: [`streamlit_app/app.py`](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/streamlit_app/app.py) (Streamlit prediction app), [`pipeline/training_pipeline_v1.py`](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/pipeline/training_pipeline_v1.py) (Model training), [`streamlit_app/pipeline.pkl`](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/streamlit_app/pipeline.pkl) (Serialized model pipeline), [`data/raw_for_webuse/Data.zip`](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/data/raw_for_webuse/Data.zip) (Fraud datasets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analysis["Data analysis"]
  node_eda["Exploratory analysis<br/>[data_inspection.py]"]
  node_descriptive["Descriptive analysis"]
  node_cleaning["Data cleaning<br/>[data_cleaning.py]"]
  node_inference["Inferential analysis"]
  node_dashboard["Fraud EDA dashboard"]
end

subgraph group_ml["Model workflow"]
  node_ingestion["Data ingestion<br/>[data_ingestion.py]"]
  node_validation["Data validation<br/>[data_validation.py]"]
  node_features["Feature engineering"]
  node_preprocessing["Pipeline preprocessing"]
  node_training["Model training"]
  node_evaluation["Model evaluation"]
end

subgraph group_serving["Inference application"]
  node_pipeline[("Serialized model pipeline<br/>[pipeline.pkl]")]
  node_app["Streamlit prediction app<br/>[app.py]"]
end

subgraph group_ops["MLOps extensions"]
  node_tracking["Experiment tracking<br/>[mlflow_tracking.py]"]
  node_api["FastAPI service scaffold<br/>[main.py]"]
  node_deployment["FastAPI deployment scaffold"]
  node_monitoring["Drift monitoring"]
end

node_user(("User"))
node_datasets[("Fraud datasets<br/>[Data.zip]")]

node_user -->|"submits input"| node_app
node_app -->|"loads model"| node_pipeline
node_app -->|"predicts with"| node_pipeline
node_datasets -.->|"explored in"| node_eda
node_datasets -.->|"loads data"| node_ingestion
node_ingestion -.->|"validated by"| node_validation
node_validation -.->|"prepared for"| node_features
node_features -.->|"feeds"| node_preprocessing
node_training -->|"builds pipeline"| node_preprocessing
node_training -.->|"saves artifact"| node_pipeline
node_training -.->|"evaluated by"| node_evaluation
node_evaluation -.->|"serves selected model"| node_app
node_user -->|"views analysis"| node_dashboard
node_training -.->|"tracks experiments"| node_tracking
node_user -.->|"calls endpoints"| node_api
node_api -.->|"deployment integration"| node_deployment
node_app -.->|"monitoring integration"| node_monitoring

click node_datasets "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/data/raw_for_webuse/Data.zip"
click node_eda "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/data_science/data_inspection.py"
click node_descriptive "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/data_science/descriptive_analysis.py"
click node_cleaning "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/data_science/data_cleaning.py"
click node_inference "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/data_science/inferential_analysis.py"
click node_dashboard "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/streamlit_app/pages/1_User_Dashboard.py"
click node_ingestion "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/ml_engineering/data_ingestion.py"
click node_validation "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/common/data_validation.py"
click node_features "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/data_science/feature_engineering.py"
click node_preprocessing "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/pipeline/complete_pipeline_v1.py"
click node_training "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/pipeline/training_pipeline_v1.py"
click node_evaluation "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/ml_engineering/model_evaluation.py"
click node_pipeline "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/streamlit_app/pipeline.pkl"
click node_app "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/streamlit_app/app.py"
click node_tracking "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/ml_engineering/mlflow_tracking.py"
click node_api "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/api/main.py"
click node_deployment "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/ml_engineering/deployment_fastapi.py"
click node_monitoring "https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/ml_engineering/monitoring_evidently.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_eda,node_descriptive,node_cleaning,node_inference,node_dashboard,node_user toneBlue
class node_ingestion,node_validation,node_features,node_preprocessing,node_training,node_evaluation,node_datasets toneAmber
class node_pipeline,node_app toneMint
class node_tracking,node_api,node_deployment,node_monitoring toneRose
```

## Components

### Data analysis

- [Exploratory analysis](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/data_science/data_inspection.py): `src/data_science/data_inspection.py`
- [Descriptive analysis](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/data_science/descriptive_analysis.py): `src/data_science/descriptive_analysis.py`
- [Data cleaning](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/data_science/data_cleaning.py): `src/data_science/data_cleaning.py`
- [Inferential analysis](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/data_science/inferential_analysis.py): `src/data_science/inferential_analysis.py`
- [Fraud EDA dashboard](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/streamlit_app/pages/1_User_Dashboard.py): `streamlit_app/pages/1_User_Dashboard.py`

### Model workflow

- [Data ingestion](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/ml_engineering/data_ingestion.py): `src/ml_engineering/data_ingestion.py`
- [Data validation](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/common/data_validation.py): `src/common/data_validation.py`
- [Feature engineering](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/data_science/feature_engineering.py): `src/data_science/feature_engineering.py`
- [Pipeline preprocessing](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/pipeline/complete_pipeline_v1.py): `pipeline/complete_pipeline_v1.py`
- [Model training](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/pipeline/training_pipeline_v1.py): `pipeline/training_pipeline_v1.py`
- [Model evaluation](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/ml_engineering/model_evaluation.py): `src/ml_engineering/model_evaluation.py`

### Inference application

- [Serialized model pipeline](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/streamlit_app/pipeline.pkl): `streamlit_app/pipeline.pkl`
- [Streamlit prediction app](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/streamlit_app/app.py): `streamlit_app/app.py`

### MLOps extensions

- [Experiment tracking](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/ml_engineering/mlflow_tracking.py): `src/ml_engineering/mlflow_tracking.py`
- [FastAPI service scaffold](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/api/main.py): `api/main.py`
- [FastAPI deployment scaffold](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/ml_engineering/deployment_fastapi.py): `src/ml_engineering/deployment_fastapi.py`
- [Drift monitoring](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/src/ml_engineering/monitoring_evidently.py): `src/ml_engineering/monitoring_evidently.py`

### Other components

- **User**
- [Fraud datasets](https://github.com/shubham-s151/end-to-end-mlops-pipeline/blob/main/data/raw_for_webuse/Data.zip): `data/raw_for_webuse/Data.zip`

## Connections

- User → Streamlit prediction app: submits input (evidence: `streamlit_app/app.py`)
- Streamlit prediction app → Serialized model pipeline: loads model (evidence: `streamlit_app/app.py`)
- Streamlit prediction app → Serialized model pipeline: predicts with (evidence: `streamlit_app/app.py`)
- Fraud datasets → Exploratory analysis: explored in (evidence: `README.md`)
- Fraud datasets → Data ingestion: loads data (evidence: `README.md`)
- Data ingestion → Data validation: validated by (evidence: `README.md`)
- Data validation → Feature engineering: prepared for (evidence: `README.md`)
- Feature engineering → Pipeline preprocessing: feeds (evidence: `README.md`)
- Model training → Pipeline preprocessing: builds pipeline (evidence: `pipeline/training_pipeline_v1.py`)
- Model training → Serialized model pipeline: saves artifact (evidence: `README.md`)
- Model training → Model evaluation: evaluated by (evidence: `README.md`)
- Model evaluation → Streamlit prediction app: serves selected model (evidence: `README.md`)
- User → Fraud EDA dashboard: views analysis (evidence: `streamlit_app/pages/1_User_Dashboard.py`)
- Model training → Experiment tracking: tracks experiments
- User → FastAPI service scaffold: calls endpoints
- FastAPI service scaffold → FastAPI deployment scaffold: deployment integration
- Streamlit prediction app → Drift monitoring: monitoring integration (evidence: `README.md`)
