# mohxndaziz/predicting-ev-charging-loads-using-pytorch architecture

> Architecture diagram of the GitHub repository mohxndaziz/predicting-ev-charging-loads-using-pytorch, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch
- Repository: https://github.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch

## Overview

This repository is a notebook-based EV charging energy predictor. Its documented workflow aligns charging sessions with nearby traffic observations, cleans and encodes the merged data, trains a neural network, and saves its weights. The README describes these stages and the saved model, but the notebook’s source was not sampled, so the graph reflects documented behavior rather than verified notebook calls.

Main entry points: [`code.ipynb`](https://github.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch/blob/main/code.ipynb) (Align and Prepare), [`model_state_dict.pth`](https://github.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch/blob/main/model_state_dict.pth) (Saved Weights), [`Dataset 1_EV charging reports.csv`](https://github.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch/blob/main/Dataset%201_EV%20charging%20reports.csv) (Charging Sessions), [`Dataset 6_Local traffic distribution.csv`](https://github.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch/blob/main/Dataset%206_Local%20traffic%20distribution.csv) (Traffic Counts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Input Data"]
  node_charging["Charging Sessions"]
  node_traffic["Traffic Counts"]
end

subgraph group_modeling["Modeling"]
  node_prep["Align and Prepare<br/>[code.ipynb]"]
  node_train["Train Network<br/>[code.ipynb]"]
  node_weights["Saved Weights"]
end

node_user(("Analyst"))

node_user -->|"runs notebook"| node_prep
node_charging -->|"session data"| node_prep
node_traffic -->|"traffic data"| node_prep
node_prep -->|"provides features"| node_train
node_train -->|"saves weights"| node_weights
node_user -->|"loads weights"| node_weights

click node_charging "https://github.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch/blob/main/Dataset%201_EV%20charging%20reports.csv"
click node_traffic "https://github.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch/blob/main/Dataset%206_Local%20traffic%20distribution.csv"
click node_prep "https://github.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch/blob/main/code.ipynb"
click node_train "https://github.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch/blob/main/code.ipynb"
click node_weights "https://github.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch/blob/main/model_state_dict.pth"

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_charging,node_traffic toneBlue
class node_prep,node_train,node_weights toneAmber
class node_user toneIndigo
```

## Components

### Input Data

- [Charging Sessions](https://github.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch/blob/main/Dataset%201_EV%20charging%20reports.csv): `Dataset 1_EV charging reports.csv`
- [Traffic Counts](https://github.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch/blob/main/Dataset%206_Local%20traffic%20distribution.csv): `Dataset 6_Local traffic distribution.csv`

### Modeling

- [Align and Prepare](https://github.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch/blob/main/code.ipynb): `code.ipynb`
- [Train Network](https://github.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch/blob/main/code.ipynb): `code.ipynb`
- [Saved Weights](https://github.com/mohxndaziz/predicting-ev-charging-loads-using-pytorch/blob/main/model_state_dict.pth): `model_state_dict.pth`

### Other components

- **Analyst**

## Connections

- Analyst → Align and Prepare: runs notebook (evidence: `README.md`)
- Charging Sessions → Align and Prepare: session data (evidence: `README.md`)
- Traffic Counts → Align and Prepare: traffic data (evidence: `README.md`)
- Align and Prepare → Train Network: provides features (evidence: `README.md`)
- Train Network → Saved Weights: saves weights (evidence: `README.md`)
- Analyst → Saved Weights: loads weights (evidence: `README.md`)
