# mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling architecture

> Architecture diagram of the GitHub repository mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling, 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/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling
- Repository: https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling

## Overview

This repository is a coal-mine predictive-maintenance classification pipeline. Its principal workflow is to load sensor records, clean and transform features, balance the training set, fit an AutoML classifier, predict on held-out data, and report classification metrics. The main script orchestrates those stages; the individual modules also use a shared logging layer. The ingestion code names a machine-specific CSV location, while the tree contains only a DVC pointer, so the dataset connection is shown with that limitation in mind. The README provides no further capability details.

Main entry points: [`main.py`](https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/main.py) (Workflow orchestrator), [`src/logger.py`](https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/src/logger.py) (Shared logger), [`src/data_ingestion.py`](https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/src/data_ingestion.py) (Data ingestion), [`src/data_preprocessing.py`](https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/src/data_preprocessing.py) (Feature preprocessing)

## Diagram (Mermaid)

```mermaid
flowchart TD

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

subgraph group_model["Model workflow"]
  node_main["Workflow orchestrator<br/>[main.py]"]
  node_building["AutoML training<br/>[model_build.py]"]
  node_prediction["Held-out prediction"]
  node_evaluation["Classification report"]
end

subgraph group_ops["Logging"]
  node_logger["Shared logger<br/>[logger.py]"]
end

node_user(("Pipeline runner"))

node_user -.->|"runs"| node_main
node_main -->|"calls"| node_ingestion
node_ingestion -->|"reads CSV"| node_dataset
node_main -->|"passes dataframe"| node_preprocessing
node_main -->|"passes training data"| node_building
node_main -->|"passes model and test data"| node_prediction
node_main -->|"passes labels and predictions"| node_evaluation
node_ingestion -->|"logs"| node_logger
node_preprocessing -->|"logs"| node_logger
node_building -->|"logs errors"| node_logger
node_prediction -->|"logs"| node_logger
node_evaluation -->|"logs"| node_logger

click node_main "https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/main.py"
click node_dataset "https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/data/raw/preventative_maintainance_dataset.csv.dvc"
click node_ingestion "https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/src/data_ingestion.py"
click node_preprocessing "https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/src/data_preprocessing.py"
click node_building "https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/src/model_build.py"
click node_prediction "https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/src/model_prediction.py"
click node_evaluation "https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/src/model_evaluation.py"
click node_logger "https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/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_dataset,node_ingestion,node_preprocessing toneBlue
class node_main,node_building,node_prediction,node_evaluation toneAmber
class node_logger toneMint
class node_user toneIndigo
```

## Components

### Data preparation

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

### Model workflow

- [Workflow orchestrator](https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/main.py): `main.py`
- [AutoML training](https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/src/model_build.py): `src/model_build.py`
- [Held-out prediction](https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/src/model_prediction.py): `src/model_prediction.py`
- [Classification report](https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/src/model_evaluation.py): `src/model_evaluation.py`

### Logging

- [Shared logger](https://github.com/mrinalgaurkhede/coalmine_predictivemaintenance_predictionmodeling/blob/main/src/logger.py): `src/logger.py`

### Other components

- **Pipeline runner**

## Connections

- Pipeline runner → Workflow orchestrator: runs
- Workflow orchestrator → Data ingestion: calls (evidence: `main.py`)
- Data ingestion → Maintenance dataset: reads CSV (evidence: `src/data_ingestion.py`)
- Workflow orchestrator → Feature preprocessing: passes dataframe (evidence: `main.py`)
- Workflow orchestrator → AutoML training: passes training data (evidence: `main.py`)
- Workflow orchestrator → Held-out prediction: passes model and test data (evidence: `main.py`)
- Workflow orchestrator → Classification report: passes labels and predictions (evidence: `main.py`)
- Data ingestion → Shared logger: logs (evidence: `src/data_ingestion.py`)
- Feature preprocessing → Shared logger: logs (evidence: `src/data_preprocessing.py`)
- AutoML training → Shared logger: logs errors (evidence: `src/model_build.py`)
- Held-out prediction → Shared logger: logs (evidence: `src/model_prediction.py`)
- Classification report → Shared logger: logs (evidence: `src/model_evaluation.py`)
