# dprasad-dp/automated_ml_pipeline architecture

> Architecture diagram of the GitHub repository dprasad-dp/automated_ml_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/dprasad-dp/automated_ml_pipeline
- Repository: https://github.com/dprasad-dp/automated_ml_pipeline

## Overview

This is a Streamlit-based automated ML application. A user uploads a CSV, selects a problem type and target, then runs ingestion, transformation and model training; the app displays model comparisons and the best result. Ingestion also creates an EDA report, while transformation saves a preprocessor. The README additionally advertises automated feature engineering and selection, but the sampled transformation code shows preprocessing rather than those distinct capabilities. The trainer implementation was not sampled, so its internal evaluation links are uncertain; dashed edges mark that limit.

Main entry points: [`app.py`](https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/app.py) (Streamlit App), [`src/components/data_ingestion.py`](https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/src/components/data_ingestion.py) (Data Ingestion), [`src/components/data_transformation.py`](https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/src/components/data_transformation.py) (Data Transformation), [`src/exception.py`](https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/src/exception.py) (Custom Exceptions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User Interface"]
  node_app["Streamlit App<br/>[app.py]"]
end

subgraph group_workflow["ML Workflow"]
  node_ingestion["Data Ingestion<br/>[data_ingestion.py]"]
  node_transformation["Data Transformation"]
  node_trainer["Model Training<br/>[model_trainer.py]"]
  node_evaluation["Model Evaluation<br/>[utils.py]"]
end

subgraph group_artifacts["Artifacts"]
  node_artifacts[("Saved Artifacts")]
end

subgraph group_support["Shared Support"]
  node_exception["Custom Exceptions<br/>[exception.py]"]
  node_logging["Logging Setup<br/>[logger.py]"]
end

node_user(("CSV User"))

node_user -->|"uploads CSV"| node_app
node_app -->|"starts ingestion"| node_ingestion
node_ingestion -->|"returns split paths"| node_app
node_ingestion -->|"writes data and report"| node_artifacts
node_app -->|"starts transformation"| node_transformation
node_transformation -->|"saves preprocessor"| node_artifacts
node_transformation -->|"saves via"| node_evaluation
node_app -->|"starts training"| node_trainer
node_trainer -.->|"evaluates models"| node_evaluation
node_trainer -->|"returns comparison"| node_app
node_ingestion -->|"raises on failure"| node_exception
node_transformation -->|"raises on failure"| node_exception
node_evaluation -->|"raises on failure"| node_exception
node_exception -->|"imports logger"| node_logging

click node_app "https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/app.py"
click node_ingestion "https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/src/components/data_ingestion.py"
click node_transformation "https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/src/components/data_transformation.py"
click node_trainer "https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/src/components/model_trainer.py"
click node_evaluation "https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/src/utils.py"
click node_exception "https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/src/exception.py"
click node_logging "https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/src/logger.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_app,node_user toneBlue
class node_ingestion,node_transformation,node_trainer,node_evaluation toneAmber
class node_artifacts toneMint
class node_exception,node_logging toneRose
```

## Components

### User Interface

- [Streamlit App](https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/app.py): `app.py`

### ML Workflow

- [Data Ingestion](https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/src/components/data_ingestion.py): `src/components/data_ingestion.py`
- [Data Transformation](https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/src/components/data_transformation.py): `src/components/data_transformation.py`
- [Model Training](https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/src/components/model_trainer.py): `src/components/model_trainer.py`
- [Model Evaluation](https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/src/utils.py): `src/utils.py`

### Artifacts

- **Saved Artifacts**

### Shared Support

- [Custom Exceptions](https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/src/exception.py): `src/exception.py`
- [Logging Setup](https://github.com/dprasad-dp/automated_ml_pipeline/blob/main/src/logger.py): `src/logger.py`

### Other components

- **CSV User**

## Connections

- CSV User → Streamlit App: uploads CSV (evidence: `README.md`)
- Streamlit App → Data Ingestion: starts ingestion (evidence: `app.py`)
- Data Ingestion → Streamlit App: returns split paths (evidence: `app.py`)
- Data Ingestion → Saved Artifacts: writes data and report (evidence: `src/components/data_ingestion.py`)
- Streamlit App → Data Transformation: starts transformation (evidence: `app.py`)
- Data Transformation → Saved Artifacts: saves preprocessor (evidence: `src/components/data_transformation.py`)
- Data Transformation → Model Evaluation: saves via (evidence: `src/components/data_transformation.py`)
- Streamlit App → Model Training: starts training (evidence: `app.py`)
- Model Training → Model Evaluation: evaluates models
- Model Training → Streamlit App: returns comparison (evidence: `app.py`)
- Data Ingestion → Custom Exceptions: raises on failure (evidence: `src/components/data_ingestion.py`)
- Data Transformation → Custom Exceptions: raises on failure (evidence: `src/components/data_transformation.py`)
- Model Evaluation → Custom Exceptions: raises on failure (evidence: `src/utils.py`)
- Custom Exceptions → Logging Setup: imports logger (evidence: `src/exception.py`)
