# abdullahshaz70/feeder-24 architecture

> Architecture diagram of the GitHub repository abdullahshaz70/feeder-24, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abdullahshaz70/feeder-24
- Repository: https://github.com/abdullahshaz70/feeder-24

## Overview

FEEDER-24 is a utility forecasting and load-shedding product: it cleans a new data folder, builds hourly features, predicts demand and trip risk, then uses demand forecasts to choose a low-cost shedding plan for control-room use through an MVP app. The sampled core code confirms loading, feature engineering, demand-model training, and inference. Task A, shedding, and the app are documented capabilities, but their source was not sampled; their links are therefore shown as unverified rather than asserted as calls.

Main entry points: [`core/load.py`](https://github.com/abdullahshaz70/feeder-24/blob/main/core/load.py) (Data loading and cleaning), [`task_c_mvp`](https://github.com/abdullahshaz70/feeder-24/tree/main/task_c_mvp) (MVP app), [`core/demand.py`](https://github.com/abdullahshaz70/feeder-24/blob/main/core/demand.py) (Demand inference), [`core/features.py`](https://github.com/abdullahshaz70/feeder-24/blob/main/core/features.py) (Hourly feature builder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_loader["Data loading and cleaning<br/>[load.py]"]
  node_features["Hourly feature builder<br/>[features.py]"]
end

subgraph group_forecast["Forecasting"]
  node_trainer["Demand model training<br/>[train_demand.py]"]
  node_model[("Saved demand model<br/>[demand.pkl]")]
  node_demand["Demand inference<br/>[demand.py]"]
end

subgraph group_decision["Risk and shedding"]
  node_triprisk["Trip-risk prediction"]
  node_shedding["Shedding decision"]
end

subgraph group_app["Control room app"]
  node_mvp["MVP app"]
end

node_operator(("Utility operator"))
node_folder["New data folder"]

node_operator -.->|"provides data"| node_folder
node_folder -.->|"loads and cleans"| node_loader
node_loader -->|"provides data"| node_features
node_features -->|"provides features"| node_trainer
node_trainer -->|"saves model"| node_model
node_features -->|"builds features"| node_demand
node_model -->|"loads model"| node_demand
node_loader -->|"loads training data"| node_trainer
node_loader -.->|"provides data"| node_demand
node_loader -.->|"provides data"| node_triprisk
node_loader -.->|"provides data"| node_shedding
node_demand -.->|"supplies forecast"| node_shedding
node_operator -.->|"uses app"| node_mvp
node_mvp -.->|"runs on folder"| node_loader
node_mvp -.->|"presents risk"| node_triprisk
node_mvp -.->|"presents plan"| node_shedding

click node_loader "https://github.com/abdullahshaz70/feeder-24/blob/main/core/load.py"
click node_features "https://github.com/abdullahshaz70/feeder-24/blob/main/core/features.py"
click node_trainer "https://github.com/abdullahshaz70/feeder-24/blob/main/core/train_demand.py"
click node_model "https://github.com/abdullahshaz70/feeder-24/blob/main/core/models/demand.pkl"
click node_demand "https://github.com/abdullahshaz70/feeder-24/blob/main/core/demand.py"
click node_triprisk "https://github.com/abdullahshaz70/feeder-24/tree/main/task_a"
click node_shedding "https://github.com/abdullahshaz70/feeder-24/tree/main/task_c_mvp"
click node_mvp "https://github.com/abdullahshaz70/feeder-24/tree/main/task_c_mvp"

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_loader,node_features toneBlue
class node_trainer,node_model,node_demand toneAmber
class node_triprisk,node_shedding toneMint
class node_mvp toneRose
class node_operator,node_folder toneIndigo
```

## Components

### Data preparation

- [Data loading and cleaning](https://github.com/abdullahshaz70/feeder-24/blob/main/core/load.py): `core/load.py`
- [Hourly feature builder](https://github.com/abdullahshaz70/feeder-24/blob/main/core/features.py): `core/features.py`

### Forecasting

- [Demand model training](https://github.com/abdullahshaz70/feeder-24/blob/main/core/train_demand.py): `core/train_demand.py`
- [Saved demand model](https://github.com/abdullahshaz70/feeder-24/blob/main/core/models/demand.pkl): `core/models/demand.pkl`
- [Demand inference](https://github.com/abdullahshaz70/feeder-24/blob/main/core/demand.py): `core/demand.py`

### Risk and shedding

- [Trip-risk prediction](https://github.com/abdullahshaz70/feeder-24/tree/main/task_a): `task_a`
- [Shedding decision](https://github.com/abdullahshaz70/feeder-24/tree/main/task_c_mvp): `task_c_mvp`

### Control room app

- [MVP app](https://github.com/abdullahshaz70/feeder-24/tree/main/task_c_mvp): `task_c_mvp`

### Other components

- **Utility operator**
- **New data folder**

## Connections

- Utility operator → New data folder: provides data (evidence: `README.md`)
- New data folder → Data loading and cleaning: loads and cleans (evidence: `README.md`)
- Data loading and cleaning → Hourly feature builder: provides data (evidence: `core/features.py`)
- Hourly feature builder → Demand model training: provides features (evidence: `core/train_demand.py`)
- Demand model training → Saved demand model: saves model (evidence: `core/train_demand.py`)
- Hourly feature builder → Demand inference: builds features (evidence: `core/demand.py`)
- Saved demand model → Demand inference: loads model (evidence: `core/demand.py`)
- Data loading and cleaning → Demand model training: loads training data (evidence: `core/train_demand.py`)
- Data loading and cleaning → Demand inference: provides data
- Data loading and cleaning → Trip-risk prediction: provides data
- Data loading and cleaning → Shedding decision: provides data
- Demand inference → Shedding decision: supplies forecast (evidence: `README.md`)
- Utility operator → MVP app: uses app (evidence: `README.md`)
- MVP app → Data loading and cleaning: runs on folder (evidence: `README.md`)
- MVP app → Trip-risk prediction: presents risk
- MVP app → Shedding decision: presents plan
