Published March 9, 2026 | Version v:0
Software Open

Short Term Load Forecast with LCT Net

Description

This repository implements a full pipeline for short‑term load forecasting (STLF) experiments using a model in the LCT‑Net family — a CNN + Local Context Transformer/attention architecture (CNN_LCT_Att). It bundles utilities for:

  • Robust CSV ingestion & data quality (QC) checks
  • Weather merging & time‑zone alignment (Meteostat)
  • Feature enrichment (cyclic encodings, holiday flags, one‑hots)
  • Rolling cross‑validation folds & calendar‑aligned splits
  • Windowing & PyTorch DataLoaders (with context)
  • Model definition, training loop (EMA, early stopping, checkpointing)
  • Evaluation & calibration (raw / offset/affine)
  • Plotting helpers for pre/post analysis

Built to support an academic paper, this repo provides the experiment code and a reproducible pipeline.

Files

STLF-lct-net-main.zip

Files (57.7 kB)

Name Size Download all
md5:57166475adcf7eb8f5341d20bf515e9b
57.7 kB Preview Download

Additional details

Software

Repository URL
https://github.com/ShashJan94/STLF-lct-net
Programming language
Python