# sanchita-hasure21/mlops_predictivemaintaince architecture

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

- Interactive diagram: https://gitdiagram.com/sanchita-hasure21/mlops_predictivemaintaince
- Repository: https://github.com/sanchita-hasure21/mlops_predictivemaintaince

## Overview

This repository implements a predictive-maintenance model-training pipeline for coal-mine equipment. Its principal workflow is a command-line entry point that loads a dataset, preprocesses and balances it, trains an AutoML classifier, predicts on held-out data, and evaluates the predictions. Logging is a shared internal layer. The README is empty, and the sampled API files contain no implementation, so the graph does not treat the API scaffold as a product capability. The checked-in dataset is represented as an input document; no model persistence is shown.

Main entry points: [`mlops/main.py`](https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/main.py) (Pipeline entry point), [`mlops/src/model_builder.py`](https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/src/model_builder.py) (AutoML training), [`mlops/src/logger.py`](https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/src/logger.py) (Logging), [`mlops/src/data_ingestion.py`](https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/src/data_ingestion.py) (Data ingestion)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pipeline["Training pipeline"]
  node_entry["Pipeline entry point<br/>[main.py]"]
  node_ingest["Data ingestion<br/>[data_ingestion.py]"]
  node_dataset["Maintenance dataset"]
  node_preprocess["Data preprocessing"]
end

subgraph group_modeling["Modeling and evaluation"]
  node_builder["AutoML training<br/>[model_builder.py]"]
  node_predictor["Prediction<br/>[model_predictor.py]"]
  node_evaluator["Model evaluation<br/>[model_evaluator.py]"]
  node_results["Evaluation results"]
end

subgraph group_operations["Shared operations"]
  node_logger["Logging<br/>[logger.py]"]
  node_flaml_log["AutoML log file"]
end

node_cli(("Pipeline user"))

node_cli -->|"starts"| node_entry
node_entry -->|"calls"| node_ingest
node_ingest -->|"reads"| node_dataset
node_ingest -->|"passes data"| node_preprocess
node_entry -->|"calls"| node_preprocess
node_entry -->|"calls"| node_builder
node_entry -->|"calls"| node_predictor
node_entry -->|"calls"| node_evaluator
node_preprocess -->|"passes samples"| node_builder
node_builder -->|"returns model"| node_entry
node_entry -->|"passes model"| node_predictor
node_predictor -->|"returns predictions"| node_entry
node_entry -->|"passes predictions"| node_evaluator
node_evaluator -->|"returns metrics"| node_results
node_ingest -->|"logs"| node_logger
node_preprocess -->|"logs"| node_logger
node_builder -->|"imports logger"| node_logger
node_predictor -->|"logs"| node_logger
node_evaluator -->|"logs"| node_logger
node_builder -->|"configures log"| node_flaml_log

click node_entry "https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/main.py"
click node_ingest "https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/src/data_ingestion.py"
click node_dataset "https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/data/raw/preventative_maintainance_dataset.csv.dvc"
click node_preprocess "https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/src/data_preprocessing.py"
click node_builder "https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/src/model_builder.py"
click node_predictor "https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/src/model_predictor.py"
click node_evaluator "https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/src/model_evaluator.py"
click node_logger "https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/src/logger.py"
click node_flaml_log "https://github.com/sanchita-hasure21/mlops_predictivemaintaince/tree/main/mlops/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,node_ingest,node_dataset,node_preprocess,node_cli toneBlue
class node_builder,node_predictor,node_evaluator,node_results toneAmber
class node_logger,node_flaml_log toneMint
```

## Components

### Training pipeline

- [Pipeline entry point](https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/main.py): `mlops/main.py`
- [Data ingestion](https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/src/data_ingestion.py): `mlops/src/data_ingestion.py`
- [Maintenance dataset](https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/data/raw/preventative_maintainance_dataset.csv.dvc): `mlops/data/raw/preventative_maintainance_dataset.csv.dvc`
- [Data preprocessing](https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/src/data_preprocessing.py): `mlops/src/data_preprocessing.py`

### Modeling and evaluation

- [AutoML training](https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/src/model_builder.py): `mlops/src/model_builder.py`
- [Prediction](https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/src/model_predictor.py): `mlops/src/model_predictor.py`
- [Model evaluation](https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/src/model_evaluator.py): `mlops/src/model_evaluator.py`
- **Evaluation results**

### Shared operations

- [Logging](https://github.com/sanchita-hasure21/mlops_predictivemaintaince/blob/main/mlops/src/logger.py): `mlops/src/logger.py`
- [AutoML log file](https://github.com/sanchita-hasure21/mlops_predictivemaintaince/tree/main/mlops/logs): `mlops/logs`

### Other components

- **Pipeline user**

## Connections

- Pipeline user → Pipeline entry point: starts
- Pipeline entry point → Data ingestion: calls (evidence: `mlops/main.py`)
- Data ingestion → Maintenance dataset: reads (evidence: `mlops/src/data_ingestion.py`)
- Data ingestion → Data preprocessing: passes data (evidence: `mlops/main.py`)
- Pipeline entry point → Data preprocessing: calls (evidence: `mlops/main.py`)
- Pipeline entry point → AutoML training: calls (evidence: `mlops/main.py`)
- Pipeline entry point → Prediction: calls (evidence: `mlops/main.py`)
- Pipeline entry point → Model evaluation: calls (evidence: `mlops/main.py`)
- Data preprocessing → AutoML training: passes samples (evidence: `mlops/main.py`)
- AutoML training → Pipeline entry point: returns model (evidence: `mlops/main.py`)
- Pipeline entry point → Prediction: passes model (evidence: `mlops/main.py`)
- Prediction → Pipeline entry point: returns predictions (evidence: `mlops/main.py`)
- Pipeline entry point → Model evaluation: passes predictions (evidence: `mlops/main.py`)
- Model evaluation → Evaluation results: returns metrics (evidence: `mlops/src/model_evaluator.py`)
- Data ingestion → Logging: logs (evidence: `mlops/src/data_ingestion.py`)
- Data preprocessing → Logging: logs (evidence: `mlops/src/data_preprocessing.py`)
- AutoML training → Logging: imports logger (evidence: `mlops/src/model_builder.py`)
- Prediction → Logging: logs (evidence: `mlops/src/model_predictor.py`)
- Model evaluation → Logging: logs (evidence: `mlops/src/model_evaluator.py`)
- AutoML training → AutoML log file: configures log (evidence: `mlops/src/model_builder.py`)
