How ehmahm/final_yr_prototype works
This repository is a research prototype for electrical-load forecasting. Its visible runtime workflow acquires household or ELIA load data, prepares hourly/daily series and forecasting sequences, then trains an LSTM autoencoder to produce latent features. Separate modules retrieve ELIA exports and recent EIA demand. The README also describes teacher-ensemble training, distillation, ONNX export, API serving, and deployment, but those implementations are not present in the supplied tree; they are shown as documented capabilities, not verified runtime connections. Edges reflect source calls or README statements; no unsampled implementation details are inferred.
Main entry points: autoencoder.py LSTM autoencoder · data.py Resampling and targets · download_elia.py ELIA paged fetch · download_elia_export.py ELIA CSV export
Components 15
Data acquisition
- Household loader
src/data.py - ELIA paged fetch
src/download_elia.py - ELIA CSV export
src/download_elia_export.py - EIA live demand
src/live_feed.py
Temporal preparation
- Resampling and targets
src/data.py - Sequence builder
src/data.py
Forecasting and serving
- LSTM autoencoder
src/autoencoder.py - Teacher ensemble
- Student distillation
- ONNX edge model
- Forecast API service
- CSV replay client
- Cloud deployment
Other components
- ELIA Open Data
- EIA API
Connections 13
- ELIA paged fetch → ELIA Open Data: fetches records
src/download_elia.py - ELIA CSV export → ELIA Open Data: downloads export
src/download_elia_export.py - EIA live demand → EIA API: requests demand
src/live_feed.py - Household loader → Resampling and targets: provides series
src/data.py - Resampling and targets → Sequence builder: builds windows
src/data.py - LSTM autoencoder → Household loader: loads data
src/autoencoder.py - LSTM autoencoder → Resampling and targets: resamples series
src/autoencoder.py - LSTM autoencoder → Sequence builder: builds sequences
src/autoencoder.py - Teacher ensemble → Student distillation: teacher outputs
README.md - Student distillation → ONNX edge model: exports student
README.md - ONNX edge model → Forecast API service: serves inference
README.md - CSV replay client → Forecast API service: sends CSV input
README.md - Forecast API service → Cloud deployment: deployed via
README.md