Skip to main content

Forecast Reconciliation in Python

Project description

FoRecoPy: Forecast Reconciliation in Python

pytest codecov

Forecast reconciliation is a post-forecasting process aimed at improving the accuracy and coherence of forecasts for a system of linearly constrained time series (e.g., hierarchical, grouped, or temporal structures).

The FoRecoPy package is inspired by the R package FoReco and brings similar functionality to Python. It is designed for researchers, practitioners, and data scientists who use Python for time series forecasting and want access to state-of-the-art reconciliation methods.

Future versions will expand the scope to include the cross-temporal framework, non-negative constraints and probabilistic reconciliation.

Installation

Make sure to have a working JAX installation (please, follow these instructions).

To install the package from PyPI, call:

pip install forecopy

To install the latest GitHub , just call the following on the command line:

pip install git+https://github.com/danigiro/FoRecoPy@<RELEASE>

Features

  • Optimal combination reconciliation via projection and structural approaches
  • Tools for both cross-sectional (csrec) and temporal (terec) reconciliation
  • Different covariance matrix approximation
  • Support for custom aggregation or constraints matrices
  • Option to enforce non-negativity on reconciled forecasts
  • Efficient solvers suitable for high-dimensional problems

Quick Examples

Examples of cross-sectional and temporal forecast reconciliation are available here

License

MIT License. See LICENSE for details.

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

forecopy-0.1.1.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

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

forecopy-0.1.1-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file forecopy-0.1.1.tar.gz.

File metadata

  • Download URL: forecopy-0.1.1.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for forecopy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 46053488aec26e2a6bc2da5ecfafe7ce8513492716af9feda61dce0fe396c43f
MD5 f18923a1a2a635577b6fa52dc58f0587
BLAKE2b-256 00ab0b1a52cb9581201bf20378fe38be115edf3aebfb9dca1439391a958e5372

See more details on using hashes here.

Provenance

The following attestation bundles were made for forecopy-0.1.1.tar.gz:

Publisher: pypi.yml on danigiro/FoRecoPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file forecopy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: forecopy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for forecopy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 755becabc1aab36a17141ce496fd1593036a571a0c293e332cb79b7b695dc34d
MD5 726e05f71fa7ba0e98e69d930a974918
BLAKE2b-256 7ce8a228168226659fb9591c0058ed39c714a2db373d9bbb936b7cd4d21e1fab

See more details on using hashes here.

Provenance

The following attestation bundles were made for forecopy-0.1.1-py3-none-any.whl:

Publisher: pypi.yml on danigiro/FoRecoPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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