Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

loadforecasting_models-0.1.6.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loadforecasting_models-0.1.6-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

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

Hashes for loadforecasting_models-0.1.6.tar.gz
Algorithm Hash digest
SHA256 8ca0d5246fa1a5d264cb166fcb9ce12e39d872ae87989bc109c630a6d6df9f57
MD5 4c874d181dcdc47dd68742e117a3e7ea
BLAKE2b-256 f32d7cc4797f0c99b0c76394f760be4e9d8390b8798ac957298d1d904bdfe7b5

See more details on using hashes here.

File details

Details for the file loadforecasting_models-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for loadforecasting_models-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 529aafd62efbdfa03d4b65dc3b764d599ee80d5d3cb6723a600161a53d9168fe
MD5 19152a72e2da779328d3b8c4c9cb4ffb
BLAKE2b-256 9d9ca41cd75e448642a26136f6b42ec744e8b82746a09b58318dae708ba7d464

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page