Skip to main content

Python tool for time series forecasting

Project description

tsururu_logo

Tsururu – a time series forecasting strategies framework

Much attention is now paid to what models to use for time series forecasting, but not to how exactly to perform training and inference.

Tsururu is a Python-based library which aims at overcoming the aforementioned problems and provides a large number of multi-series and multi-point-ahead prediction strategies that can be used with any underlying model, including neural networks.

Also tsururu provides various preprocessing techniques.

Multi-series prediction strategies:

  • Local-modelling:
    • Individual model for each time series.
  • Global-modelling:
    • One model for all time series;
    • features made up of individual series do not overlap.
  • Multivariate-modelling:
    • One model for all time series;
    • features made up of individual series corresponding to the same time point are concatenated for all time series.

Multi-point-ahead prediction strategies:

  • Recursive:
    • one model for all points of the forecast horizon;
    • training: the model is trained to predict one point ahead;
    • prediction: a prediction is iteratively made one point ahead, and then this prediction is used to further shape the features in the test data.
  • Recursive-reduced:
    • one model for all points in the prediction horizon;
    • training: the model is trained to predict one point ahead;
    • prediction: features are generated for all test observations at once, unavailable values are replaced by NaN.
  • Direct:
    • individual models for each point in the prediction horizon.
  • MultiOutput (MIMO - Multi-input-multi-output):
    • one model that learns to predict the entire prediction horizon.
    • Also, this strategy supports the presence of exogenous features (only for local- or global-modelling).
  • FlatWideMIMO:.
    • mixture of Direct and MIMO, fit one model, but uses deployed over horizon Direct's features.

Installation

To install tsururu via pip you can use:

pip install -U tsururu

Quick tour

For usage example please see:

More examples are coming soon.

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

tsururu-0.1.2.tar.gz (63.4 kB view details)

Uploaded Source

Built Distribution

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

tsururu-0.1.2-py3-none-any.whl (38.1 kB view details)

Uploaded Python 3

File details

Details for the file tsururu-0.1.2.tar.gz.

File metadata

  • Download URL: tsururu-0.1.2.tar.gz
  • Upload date:
  • Size: 63.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Darwin/23.5.0

File hashes

Hashes for tsururu-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c175be55c9228ebeffdb00494dc56b000642ae06d9eafda517f259f1520cbd05
MD5 7484d6bb2604ad6229710ea75aa42e0c
BLAKE2b-256 bea61543da9897a93e095503032c8342fe4cd6aabd9b786e370a7f0029bb4bee

See more details on using hashes here.

File details

Details for the file tsururu-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: tsururu-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 38.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Darwin/23.5.0

File hashes

Hashes for tsururu-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 53b6614c667bb2b62a5f67d74132ddfd4601fcbae4d25a524e6d5d7b7ee16582
MD5 31b9b4feda8f3a062e88571ee84e79bc
BLAKE2b-256 bc67bc6d890bcee3bfd8b948b1b06afb7a4c5f3d10c15d0767c7c452c3baf1c3

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