# lyesarabm/predictive-maintenance-mlops architecture

> Architecture diagram of the GitHub repository lyesarabm/predictive-maintenance-mlops, 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/lyesarabm/predictive-maintenance-mlops
- Repository: https://github.com/lyesarabm/predictive-maintenance-mlops

## Overview

This repository is a Cookiecutter-style predictive-maintenance project scaffold, not a functioning end-to-end ML system yet. Its intended workflow is raw-data processing, feature generation, model training, inference, and plotting; the sampled commands currently contain placeholders rather than data or model operations. The graph preserves those documented stages and configured artifact locations. Solid edges show imports visible in source; dashed edges mark intended but unverified workflow and artifact interactions.

Main entry points: [`predictive_maintenance_mlops/config.py`](https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/config.py) (Processed data), [`predictive_maintenance_mlops/modeling/predict.py`](https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/modeling/predict.py) (Model inference), [`predictive_maintenance_mlops/dataset.py`](https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/dataset.py) (Dataset processing), [`predictive_maintenance_mlops/features.py`](https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/features.py) (Feature generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prep["Data preparation"]
  node_dataset["Dataset processing<br/>[dataset.py]"]
  node_features["Feature generation<br/>[features.py]"]
  node_raw["Raw dataset<br/>[config.py]"]
  node_processed["Processed data<br/>[config.py]"]
end

subgraph group_model["Model workflow"]
  node_training["Model training<br/>[train.py]"]
  node_inference["Model inference<br/>[predict.py]"]
  node_model_artifact["Model artifact<br/>[config.py]"]
end

subgraph group_support["Configuration and outputs"]
  node_plots["Plot generation<br/>[plots.py]"]
  node_config["Path configuration<br/>[config.py]"]
  node_figures["Generated figures<br/>[config.py]"]
end

node_user(("Project user"))

node_dataset -->|"imports paths"| node_config
node_features -->|"imports paths"| node_config
node_training -->|"imports paths"| node_config
node_inference -->|"imports paths"| node_config
node_plots -->|"imports paths"| node_config
node_user -.->|"runs command"| node_dataset
node_user -.->|"runs command"| node_features
node_user -.->|"runs command"| node_training
node_user -.->|"runs command"| node_inference
node_user -.->|"runs command"| node_plots
node_raw -.->|"intended input"| node_dataset
node_dataset -.->|"intended output"| node_processed
node_processed -.->|"intended input"| node_features
node_features -.->|"intended features"| node_training
node_training -.->|"intended output"| node_model_artifact
node_model_artifact -.->|"intended model"| node_inference
node_processed -.->|"intended input"| node_inference
node_inference -.->|"intended predictions"| node_processed
node_processed -.->|"intended input"| node_plots
node_plots -.->|"intended output"| node_figures

click node_dataset "https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/dataset.py"
click node_features "https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/features.py"
click node_training "https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/modeling/train.py"
click node_inference "https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/modeling/predict.py"
click node_plots "https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/plots.py"
click node_config "https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/config.py"
click node_raw "https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/config.py"
click node_processed "https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/config.py"
click node_model_artifact "https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/config.py"
click node_figures "https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/config.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_dataset,node_features,node_raw,node_processed,node_user toneBlue
class node_training,node_inference,node_model_artifact toneAmber
class node_plots,node_config,node_figures toneMint
```

## Components

### Data preparation

- [Dataset processing](https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/dataset.py): `predictive_maintenance_mlops/dataset.py`
- [Feature generation](https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/features.py): `predictive_maintenance_mlops/features.py`
- [Raw dataset](https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/config.py): `predictive_maintenance_mlops/config.py`
- [Processed data](https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/config.py): `predictive_maintenance_mlops/config.py`

### Model workflow

- [Model training](https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/modeling/train.py): `predictive_maintenance_mlops/modeling/train.py`
- [Model inference](https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/modeling/predict.py): `predictive_maintenance_mlops/modeling/predict.py`
- [Model artifact](https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/config.py): `predictive_maintenance_mlops/config.py`

### Configuration and outputs

- [Plot generation](https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/plots.py): `predictive_maintenance_mlops/plots.py`
- [Path configuration](https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/config.py): `predictive_maintenance_mlops/config.py`
- [Generated figures](https://github.com/lyesarabm/predictive-maintenance-mlops/blob/main/predictive_maintenance_mlops/config.py): `predictive_maintenance_mlops/config.py`

### Other components

- **Project user**

## Connections

- Dataset processing → Path configuration: imports paths (evidence: `predictive_maintenance_mlops/dataset.py`)
- Feature generation → Path configuration: imports paths (evidence: `predictive_maintenance_mlops/features.py`)
- Model training → Path configuration: imports paths (evidence: `predictive_maintenance_mlops/modeling/train.py`)
- Model inference → Path configuration: imports paths (evidence: `predictive_maintenance_mlops/modeling/predict.py`)
- Plot generation → Path configuration: imports paths (evidence: `predictive_maintenance_mlops/plots.py`)
- Project user → Dataset processing: runs command
- Project user → Feature generation: runs command
- Project user → Model training: runs command
- Project user → Model inference: runs command
- Project user → Plot generation: runs command
- Raw dataset → Dataset processing: intended input (evidence: `predictive_maintenance_mlops/dataset.py`)
- Dataset processing → Processed data: intended output (evidence: `predictive_maintenance_mlops/dataset.py`)
- Processed data → Feature generation: intended input (evidence: `predictive_maintenance_mlops/features.py`)
- Feature generation → Model training: intended features
- Model training → Model artifact: intended output (evidence: `predictive_maintenance_mlops/modeling/train.py`)
- Model artifact → Model inference: intended model (evidence: `predictive_maintenance_mlops/modeling/predict.py`)
- Processed data → Model inference: intended input (evidence: `predictive_maintenance_mlops/modeling/predict.py`)
- Model inference → Processed data: intended predictions (evidence: `predictive_maintenance_mlops/modeling/predict.py`)
- Processed data → Plot generation: intended input (evidence: `predictive_maintenance_mlops/plots.py`)
- Plot generation → Generated figures: intended output (evidence: `predictive_maintenance_mlops/plots.py`)
