Package, containing multiple state-of-the-art forecasting models.
Project description
Overview
This Python package provides state-of-the-art models for short-term load forecasting (STLF), designed for both academic research and real-world energy applications.
The models and evaluation framework are described in the following publication:
Moosbrugger et al. (2025). Load Forecasting for Households and Energy Communities: Are Deep Learning Models Worth the Effort?
arXiv:2501.05000
For more details and the full project source code, visit the GitHub repository.
Quick Start
Install the package:
pip install loadforecasting_models
You can easily integrate and train our forecasting models in your Python workflow. Here's an example using the Transformer-based sequence-to-sequence model:
from loadforecasting_models import Model
import torch
# Generate dummy training data
X_train = torch.randn(365, 24, 10) # shape: (batch_size, sequence_length, num_features)
Y_train = torch.randn(365, 24, 1) # shape: (batch_size, sequence_length, 1)
# Initialize and train the model
model = Model('Transformer', model_size='5k', num_of_features=X_train.shape[2])
model.train_model(X_train, Y_train, pretrain_now=False, finetune_now=False, epochs=100, verbose=0)
# Generate predictions
X_test = torch.randn(90, 24, 10)
Y_pred = model.predict(X_test)
print(f"Prediction output shape: {Y_pred.shape}")
Currently Available Model Types:
-
'Transformer'
-
'LSTM'
-
'xLSTM'
-
'KNN'
Citation
If you use this package in your work, please cite the following paper:
@article{moosbrugger2025load,
title={Load Forecasting for Households and Energy Communities: Are Deep Learning Models Worth the Effort?},
author={Moosbrugger, Lukas and Seiler, Valentin and Wohlgenannt, Philipp and Hegenbart, Sebastian and Ristov, Sashko and Eder, Elias and Kepplinger, Peter},
journal={arXiv preprint},
year={2025},
doi={10.48550/arXiv.2501.05000}
}
License
This project is open-source and available under the terms of the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file loadforecasting_models-0.1.6.tar.gz.
File metadata
- Download URL: loadforecasting_models-0.1.6.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ca0d5246fa1a5d264cb166fcb9ce12e39d872ae87989bc109c630a6d6df9f57
|
|
| MD5 |
4c874d181dcdc47dd68742e117a3e7ea
|
|
| BLAKE2b-256 |
f32d7cc4797f0c99b0c76394f760be4e9d8390b8798ac957298d1d904bdfe7b5
|
File details
Details for the file loadforecasting_models-0.1.6-py3-none-any.whl.
File metadata
- Download URL: loadforecasting_models-0.1.6-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
529aafd62efbdfa03d4b65dc3b764d599ee80d5d3cb6723a600161a53d9168fe
|
|
| MD5 |
19152a72e2da779328d3b8c4c9cb4ffb
|
|
| BLAKE2b-256 |
9d9ca41cd75e448642a26136f6b42ec744e8b82746a09b58318dae708ba7d464
|