# shivammitra/ml-project-integration-with-mlflow-tracking architecture

> Architecture diagram of the GitHub repository shivammitra/ml-project-integration-with-mlflow-tracking, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shivammitra/ml-project-integration-with-mlflow-tracking
- Repository: https://github.com/shivammitra/ml-project-integration-with-mlflow-tracking

## Overview

#### Purpose and execution model
This is a notebook-driven machine-learning repository containing two independent experiments: Iris species classification and house-price regression. Both workflows train/evaluate scikit-learn models and record runs, metrics, parameters, and model artifacts through MLflow. There is no packaged application, service API, or shared source module layer.

Primary entry points:
- `ML Project.ipynb` — Iris classification workflow.
- `House Price Prediction.ipynb` — house-price regression workflow.

#### Runtime and dependencies
Execution occurs in a Python/Jupyter environment. Dependencies are installed from `requirements.txt` and include MLflow, scikit-learn, pandas, NumPy, and visualization libraries. MLflow’s local UI/tracking server is expected to run separately via `mlflow ui`, with dashboard URLs targeting `127.0.0.1:5000`.

Paths:
- `requirements.txt`
- `ML Project.ipynb`
- `House Price Prediction.ipynb`

#### Iris classification pipeline
`ML Project.ipynb` is an end-to-end supervised classification experiment. Its stated stages are:
1. Load the Iris dataset from scikit-learn.
2. Perform exploratory analysis.
3. Train one or more classifiers, such as Logistic Regression, Decision Tree, or Random Forest.
4. Evaluate predictive performance.
5. Log parameters, metrics, and model artifacts to MLflow.

The sklearn dataset is the input boundary; trained models and experiment metadata cross into MLflow.

Path:
- `ML Project.ipynb`

#### House-price regression pipeline
`House Price Prediction.ipynb` implements an independent regression workflow. It transforms numerical housing attributes, trains and tunes a regression model, and assesses predictions with RMSE, MAE, and R². Its artifact/model lifecycle is also delegated to MLflow.

Core stages:
1. Load housing data.
2. Preprocess and normalize features.
3. Train and hyperparameter-tune regression models.
4. Evaluate with regression metrics.
5. Persist run metadata and model artifacts through MLflow.

Path:
- `House Price Prediction.ipynb`

#### Experiment-tracking boundary
MLflow is the central cross-cutting infrastructure component, but each notebook owns its own experiment lifecycle. Tracking captures:
- Run identity and experiment grouping.
- Training parameters and tuning choices.
- Classification or regression metrics.
- Serialized model artifacts.

The README references a dedicated Iris experiment and the default experiment for house pricing, implying separate MLflow run contexts rather than a shared pipeline orchestration layer.

Paths:
- `README.md`
- `ML Project.ipynb`
- `House Price Prediction.ipynb`

#### Architectural constraints
The repository is organized around interactive notebooks, so data preparation, model selection, evaluation, and logging are likely coupled within notebook cells rather than reusable production components. Reproducibility depends on the notebook execution order, installed environment, available input data, and the local MLflow tracking store. No deployment, model-serving, CI, persistent remote artifact store, or dataset-management component is present in the repository tree.

Main entry points: [`ML Project.ipynb`](https://github.com/shivammitra/ml-project-integration-with-mlflow-tracking/blob/main/ML%20Project.ipynb) (Iris workflow notebook), [`House Price Prediction.ipynb`](https://github.com/shivammitra/ml-project-integration-with-mlflow-tracking/blob/main/House%20Price%20Prediction.ipynb) (House-price workflow notebook), [`requirements.txt`](https://github.com/shivammitra/ml-project-integration-with-mlflow-tracking/blob/main/requirements.txt) (Python dependencies)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_iris["Iris experiment"]
  node_iris_data[("scikit-learn Iris data<br/>dataset")]
  node_iris_notebook["Iris workflow notebook<br/>notebook entry point<br/>[ML Project.ipynb]"]
  node_iris_eda["Exploration<br/>analysis stage"]
  node_iris_training["Classifier training<br/>training stage"]
  node_iris_evaluation["Classification evaluation<br/>evaluation stage"]
end

subgraph group_housing["House-price experiment"]
  node_housing_data[("Housing data<br/>dataset")]
  node_housing_notebook["House-price workflow notebook<br/>notebook entry point"]
  node_housing_preprocessing["Feature preprocessing<br/>processing stage"]
  node_housing_training["Regression training and tuning<br/>training stage"]
  node_housing_evaluation["Regression evaluation<br/>evaluation stage"]
end

node_requirements["Python dependencies<br/>requirements<br/>[requirements.txt]"]
node_jupyter{{"Python/Jupyter runtime"}}
node_mlflow[("MLflow tracking server<br/>experiment tracking")]
node_mlflow_ui["MLflow UI<br/>tracking dashboard"]

node_requirements -->|"installs"| node_jupyter
node_jupyter -->|"executes"| node_iris_notebook
node_jupyter -->|"executes"| node_housing_notebook
node_iris_data -->|"loaded by"| node_iris_notebook
node_iris_notebook -->|"explores"| node_iris_eda
node_iris_eda -->|"informs"| node_iris_training
node_iris_training -->|"predicts"| node_iris_evaluation
node_iris_notebook -->|"logs Iris runs, metrics, and models"| node_mlflow
node_housing_data -->|"loaded by"| node_housing_notebook
node_housing_notebook -->|"preprocesses"| node_housing_preprocessing
node_housing_preprocessing -->|"provides features"| node_housing_training
node_housing_training -->|"predicts"| node_housing_evaluation
node_housing_notebook -->|"logs default-experiment runs and models"| node_mlflow
node_mlflow -->|"serves tracked runs"| node_mlflow_ui

click node_requirements "https://github.com/shivammitra/ml-project-integration-with-mlflow-tracking/blob/main/requirements.txt"
click node_iris_notebook "https://github.com/shivammitra/ml-project-integration-with-mlflow-tracking/blob/main/ML%20Project.ipynb"
click node_housing_notebook "https://github.com/shivammitra/ml-project-integration-with-mlflow-tracking/blob/main/House%20Price%20Prediction.ipynb"

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_iris_data,node_iris_notebook,node_iris_eda,node_iris_training,node_iris_evaluation toneBlue
class node_housing_data,node_housing_notebook,node_housing_preprocessing,node_housing_training,node_housing_evaluation toneAmber
class node_requirements,node_jupyter,node_mlflow,node_mlflow_ui toneNeutral
```

## Components

### Iris experiment

- **scikit-learn Iris data**: dataset · Input boundary supplied by scikit-learn.
- [Iris workflow notebook](https://github.com/shivammitra/ml-project-integration-with-mlflow-tracking/blob/main/ML%20Project.ipynb): notebook entry point · Owns the end-to-end classification experiment. · `ML Project.ipynb`
- **Exploration**: analysis stage
- **Classifier training**: training stage · Logistic Regression, Decision Tree, or Random Forest.
- **Classification evaluation**: evaluation stage

### House-price experiment

- **Housing data**: dataset · External input data required at notebook execution.
- [House-price workflow notebook](https://github.com/shivammitra/ml-project-integration-with-mlflow-tracking/blob/main/House%20Price%20Prediction.ipynb): notebook entry point · Owns the end-to-end regression experiment. · `House Price Prediction.ipynb`
- **Feature preprocessing**: processing stage · Transforms and normalizes numerical housing attributes.
- **Regression training and tuning**: training stage
- **Regression evaluation**: evaluation stage · Measures RMSE, MAE, and R².

### Other components

- [Python dependencies](https://github.com/shivammitra/ml-project-integration-with-mlflow-tracking/blob/main/requirements.txt): requirements · MLflow, scikit-learn, pandas, NumPy, and visualization libraries. · `requirements.txt`
- **Python/Jupyter runtime**: runtime
- **MLflow tracking server**: experiment tracking · Local tracking store and artifact lifecycle boundary.
- **MLflow UI**: tracking dashboard · Local dashboard expected at 127.0.0.1:5000.

## Connections

- Python dependencies → Python/Jupyter runtime: installs
- Python/Jupyter runtime → Iris workflow notebook: executes
- Python/Jupyter runtime → House-price workflow notebook: executes
- scikit-learn Iris data → Iris workflow notebook: loaded by
- Iris workflow notebook → Exploration: explores
- Exploration → Classifier training: informs
- Classifier training → Classification evaluation: predicts
- Iris workflow notebook → MLflow tracking server: logs Iris runs, metrics, and models
- Housing data → House-price workflow notebook: loaded by
- House-price workflow notebook → Feature preprocessing: preprocesses
- Feature preprocessing → Regression training and tuning: provides features
- Regression training and tuning → Regression evaluation: predicts
- House-price workflow notebook → MLflow tracking server: logs default-experiment runs and models
- MLflow tracking server → MLflow UI: serves tracked runs
