# shanmugasundaram2503/charging-demand-prediction-and-usage-pattern architecture

> Architecture diagram of the GitHub repository shanmugasundaram2503/charging-demand-prediction-and-usage-pattern, 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/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern
- Repository: https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern

## Overview

This repository is an EV charging-demand analysis and prediction project, with a Streamlit dashboard for exploring results. Its intended workflow covers data preparation, exploratory analysis, feature engineering, demand regression and high-demand classification, time-series forecasting, and model explanations; sample-data generation supports use without a real CSV. The source index and excerpts confirm several module dependencies, but do not expose the pipeline runner’s orchestration or every artifact handoff, so those links are omitted. The root README gives only the project title; capability details come from the sampled module descriptions and code.

Main entry points: [`ev_charging_project/src/config.py`](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/config.py) (Project settings), [`ev_charging_project/src/utils.py`](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/utils.py) (Shared modeling helpers), [`ev_charging_project/app/streamlit_app.py`](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/app/streamlit_app.py) (Results dashboard), [`ev_charging_project/src/step3_features.py`](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step3_features.py) (Feature engineering)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Data workflow"]
  node_sample["Sample data"]
  node_clean["Data cleaning<br/>[step1_clean.py]"]
  node_eda["Exploratory analysis<br/>[step2_eda.py]"]
  node_features["Feature engineering<br/>[step3_features.py]"]
end

subgraph group_models["Prediction and analysis"]
  node_regression["Demand regression"]
  node_classification["Demand classification"]
  node_timeseries["Time-series forecast"]
  node_explain["Model explanations<br/>[step7_explain.py]"]
  node_summary["Pipeline summary<br/>[step8_summary.py]"]
end

subgraph group_app["Dashboard"]
  node_dashboard["Results dashboard<br/>[streamlit_app.py]"]
end

subgraph group_shared["Shared runtime"]
  node_utils["Shared modeling helpers<br/>[utils.py]"]
  node_config["Project settings<br/>[config.py]"]
  node_run["Pipeline runner<br/>[run_pipeline.py]"]
end

node_user(("Analyst"))

node_clean -->|"uses settings"| node_config
node_sample -->|"uses settings"| node_config
node_eda -->|"uses settings"| node_config
node_features -->|"uses settings"| node_config
node_features -->|"uses helpers"| node_utils
node_regression -->|"loads and preprocesses"| node_utils
node_classification -->|"loads and preprocesses"| node_utils
node_timeseries -->|"uses settings"| node_config
node_explain -->|"uses helpers"| node_utils
node_explain -->|"uses settings"| node_config
node_dashboard -->|"uses settings"| node_config
node_dashboard -->|"uses helpers"| node_utils
node_user -->|"explores results"| node_dashboard

click node_sample "https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/make_sample_data.py"
click node_clean "https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step1_clean.py"
click node_eda "https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step2_eda.py"
click node_features "https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step3_features.py"
click node_regression "https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step4_regression.py"
click node_classification "https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step5_classification.py"
click node_timeseries "https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step6_timeseries.py"
click node_explain "https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step7_explain.py"
click node_summary "https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step8_summary.py"
click node_dashboard "https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/app/streamlit_app.py"
click node_utils "https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/utils.py"
click node_config "https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/config.py"
click node_run "https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/run_pipeline.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_sample,node_clean,node_eda,node_features toneBlue
class node_regression,node_classification,node_timeseries,node_explain,node_summary toneAmber
class node_dashboard toneMint
class node_utils,node_config,node_run toneRose
class node_user toneIndigo
```

## Components

### Data workflow

- [Sample data](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/make_sample_data.py): `ev_charging_project/src/make_sample_data.py`
- [Data cleaning](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step1_clean.py): `ev_charging_project/src/step1_clean.py`
- [Exploratory analysis](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step2_eda.py): `ev_charging_project/src/step2_eda.py`
- [Feature engineering](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step3_features.py): `ev_charging_project/src/step3_features.py`

### Prediction and analysis

- [Demand regression](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step4_regression.py): `ev_charging_project/src/step4_regression.py`
- [Demand classification](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step5_classification.py): `ev_charging_project/src/step5_classification.py`
- [Time-series forecast](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step6_timeseries.py): `ev_charging_project/src/step6_timeseries.py`
- [Model explanations](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step7_explain.py): `ev_charging_project/src/step7_explain.py`
- [Pipeline summary](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/step8_summary.py): `ev_charging_project/src/step8_summary.py`

### Dashboard

- [Results dashboard](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/app/streamlit_app.py): `ev_charging_project/app/streamlit_app.py`

### Shared runtime

- [Shared modeling helpers](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/utils.py): `ev_charging_project/src/utils.py`
- [Project settings](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/src/config.py): `ev_charging_project/src/config.py`
- [Pipeline runner](https://github.com/shanmugasundaram2503/charging-demand-prediction-and-usage-pattern/blob/main/ev_charging_project/run_pipeline.py): `ev_charging_project/run_pipeline.py`

### Other components

- **Analyst**

## Connections

- Data cleaning → Project settings: uses settings (evidence: `ev_charging_project/src/step1_clean.py`)
- Sample data → Project settings: uses settings (evidence: `ev_charging_project/src/make_sample_data.py`)
- Exploratory analysis → Project settings: uses settings (evidence: `ev_charging_project/src/step2_eda.py`)
- Feature engineering → Project settings: uses settings (evidence: `ev_charging_project/src/step3_features.py`)
- Feature engineering → Shared modeling helpers: uses helpers (evidence: `ev_charging_project/src/step3_features.py`)
- Demand regression → Shared modeling helpers: loads and preprocesses (evidence: `ev_charging_project/src/step4_regression.py`)
- Demand classification → Shared modeling helpers: loads and preprocesses (evidence: `ev_charging_project/src/step5_classification.py`)
- Time-series forecast → Project settings: uses settings (evidence: `ev_charging_project/src/step6_timeseries.py`)
- Model explanations → Shared modeling helpers: uses helpers (evidence: `ev_charging_project/src/step7_explain.py`)
- Model explanations → Project settings: uses settings (evidence: `ev_charging_project/src/step7_explain.py`)
- Results dashboard → Project settings: uses settings (evidence: `ev_charging_project/app/streamlit_app.py`)
- Results dashboard → Shared modeling helpers: uses helpers (evidence: `ev_charging_project/app/streamlit_app.py`)
- Analyst → Results dashboard: explores results (evidence: `ev_charging_project/app/streamlit_app.py`)
