# vikas-rahangdale/predictive-maintenance-ml-model-rvd architecture

> Architecture diagram of the GitHub repository vikas-rahangdale/predictive-maintenance-ml-model-rvd, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd
- Repository: https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd

## Overview

This is a small Streamlit predictive-maintenance app. A user enters machine type and sensor readings, submits them for encoding and scaling, and the saved classifier predicts whether failure is likely; the app displays the result. The source shows the model and scaler being loaded from local pickle files and used at prediction time. No README or other runtime modules are present, so the graph reflects only the supplied app and artifacts.

Main entry points: [`appp.py`](https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd/blob/main/appp.py) (Encode and scale), [`scaler.pkl`](https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd/blob/main/scaler.pkl) (Saved scaler), [`best_model.pkl`](https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd/blob/main/best_model.pkl) (Saved classifier)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Prediction app"]
  node_inputs["Machine inputs<br/>[appp.py]"]
  node_preprocess["Encode and scale<br/>[appp.py]"]
  node_scaler["Saved scaler<br/>[scaler.pkl]"]
  node_inference["Failure prediction<br/>[appp.py]"]
  node_model["Saved classifier<br/>[best_model.pkl]"]
  node_result["Prediction message<br/>[appp.py]"]
end

node_user(("Machine operator"))

node_user -->|"enters readings"| node_inputs
node_inputs -->|"submits"| node_preprocess
node_preprocess -->|"transforms with"| node_scaler
node_preprocess -->|"passes scaled data"| node_inference
node_inference -->|"predicts with"| node_model
node_inference -->|"selects message"| node_result
node_result -->|"displays result"| node_user

click node_inputs "https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd/blob/main/appp.py"
click node_preprocess "https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd/blob/main/appp.py"
click node_scaler "https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd/blob/main/scaler.pkl"
click node_inference "https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd/blob/main/appp.py"
click node_model "https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd/blob/main/best_model.pkl"
click node_result "https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd/blob/main/appp.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_inputs,node_preprocess,node_scaler,node_inference,node_model,node_result toneBlue
class node_user toneIndigo
```

## Components

### Prediction app

- [Machine inputs](https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd/blob/main/appp.py): `appp.py`
- [Encode and scale](https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd/blob/main/appp.py): `appp.py`
- [Saved scaler](https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd/blob/main/scaler.pkl): `scaler.pkl`
- [Failure prediction](https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd/blob/main/appp.py): `appp.py`
- [Saved classifier](https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd/blob/main/best_model.pkl): `best_model.pkl`
- [Prediction message](https://github.com/vikas-rahangdale/predictive-maintenance-ml-model-rvd/blob/main/appp.py): `appp.py`

### Other components

- **Machine operator**

## Connections

- Machine operator → Machine inputs: enters readings
- Machine inputs → Encode and scale: submits
- Encode and scale → Saved scaler: transforms with
- Encode and scale → Failure prediction: passes scaled data
- Failure prediction → Saved classifier: predicts with
- Failure prediction → Prediction message: selects message
- Prediction message → Machine operator: displays result
