# hudaa0412/mlops_prediction_model architecture

> Architecture diagram of the GitHub repository hudaa0412/mlops_prediction_model, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hudaa0412/mlops_prediction_model
- Repository: https://github.com/hudaa0412/mlops_prediction_model

## Overview

This repository is an incomplete predictive-maintenance ML workflow. Running `main.py` initiates dataset ingestion, then preprocessing that removes duplicates, separates features and target, splits the data, transforms features, and resamples training data; the resulting arrays are assigned in the entry point. Ingestion and preprocessing use a shared logger. Model-building, evaluation, and prediction files are empty in the provided excerpts, so they are not represented as working product stages. The dataset is represented by its checked-in DVC pointer; the ingestion code uses a hard-coded local CSV path. No model or serving workflow is evidenced.

Main entry points: [`main.py`](https://github.com/hudaa0412/mlops_prediction_model/blob/main/main.py) (Workflow entry), [`src/data_ingestion.py`](https://github.com/hudaa0412/mlops_prediction_model/blob/main/src/data_ingestion.py) (Dataset ingestion), [`src/data_preprocessing.py`](https://github.com/hudaa0412/mlops_prediction_model/blob/main/src/data_preprocessing.py) (Feature preprocessing), [`src/logger.py`](https://github.com/hudaa0412/mlops_prediction_model/blob/main/src/logger.py) (Shared logger)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Workflow"]
  node_entry["Workflow entry<br/>[main.py]"]
end

subgraph group_data["Data handling"]
  node_ingestion["Dataset ingestion<br/>[data_ingestion.py]"]
  node_dataset["Maintenance dataset"]
  node_preprocessing["Feature preprocessing"]
end

subgraph group_observability["Observability"]
  node_logger["Shared logger<br/>[logger.py]"]
  node_logfile["Application log"]
end

node_user(("Workflow runner"))

node_user -->|"runs"| node_entry
node_entry -->|"calls"| node_ingestion
node_ingestion -->|"reads"| node_dataset
node_entry -->|"passes data"| node_preprocessing
node_preprocessing -->|"returns arrays"| node_entry
node_ingestion -->|"logs events"| node_logger
node_preprocessing -->|"logs events"| node_logger
node_logger -->|"writes"| node_logfile

click node_entry "https://github.com/hudaa0412/mlops_prediction_model/blob/main/main.py"
click node_ingestion "https://github.com/hudaa0412/mlops_prediction_model/blob/main/src/data_ingestion.py"
click node_dataset "https://github.com/hudaa0412/mlops_prediction_model/blob/main/data/raw/preventative_maintainance_dataset.csv.dvc"
click node_preprocessing "https://github.com/hudaa0412/mlops_prediction_model/blob/main/src/data_preprocessing.py"
click node_logger "https://github.com/hudaa0412/mlops_prediction_model/blob/main/src/logger.py"
click node_logfile "https://github.com/hudaa0412/mlops_prediction_model/tree/main/logs"

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_entry toneBlue
class node_ingestion,node_dataset,node_preprocessing toneAmber
class node_logger,node_logfile toneMint
class node_user toneIndigo
```

## Components

### Workflow

- [Workflow entry](https://github.com/hudaa0412/mlops_prediction_model/blob/main/main.py): `main.py`

### Data handling

- [Dataset ingestion](https://github.com/hudaa0412/mlops_prediction_model/blob/main/src/data_ingestion.py): `src/data_ingestion.py`
- [Maintenance dataset](https://github.com/hudaa0412/mlops_prediction_model/blob/main/data/raw/preventative_maintainance_dataset.csv.dvc): `data/raw/preventative_maintainance_dataset.csv.dvc`
- [Feature preprocessing](https://github.com/hudaa0412/mlops_prediction_model/blob/main/src/data_preprocessing.py): `src/data_preprocessing.py`

### Observability

- [Shared logger](https://github.com/hudaa0412/mlops_prediction_model/blob/main/src/logger.py): `src/logger.py`
- [Application log](https://github.com/hudaa0412/mlops_prediction_model/tree/main/logs): `logs`

### Other components

- **Workflow runner**

## Connections

- Workflow runner → Workflow entry: runs (evidence: `main.py`)
- Workflow entry → Dataset ingestion: calls (evidence: `main.py`)
- Dataset ingestion → Maintenance dataset: reads (evidence: `src/data_ingestion.py`)
- Workflow entry → Feature preprocessing: passes data (evidence: `main.py`)
- Feature preprocessing → Workflow entry: returns arrays (evidence: `main.py`)
- Dataset ingestion → Shared logger: logs events (evidence: `src/data_ingestion.py`)
- Feature preprocessing → Shared logger: logs events (evidence: `src/data_preprocessing.py`)
- Shared logger → Application log: writes (evidence: `src/logger.py`)
