Skip to main content


divina: scalable and automatable multi-horizon forecasting toolkit

Continuous Integration PyPI Latest Release Package Status License Code style: black Imports: isort

What is it?

divina confronts four main problems for professional forecasters:

  • Multiple-horizon forecasting often involves repeated programming of the same, complex code across train, predict, validation and visualization
  • Many forecasting model implementations do not follow the standard scikit-interface or scale well to large datasets
  • Different forecasting models often benefit from the complex engineering of the same time-sensitive features
  • Because of the above three, deployment and scaling of multi-horizon forecasting ensembles is considerably more complex than a typical machine learning pipeline

Main Features

divina addresses the aforementioned problems by:

  • Providing a single Python object with a simple interface that abstracts away the complexities of multi-horizon train, predict, valiation and visualization
  • Providing a library of interface-standardized model ensemble candidates that can be mixed and matched depending on the forecasting problem
  • Providing consistent, efficient implementations of popular time-series engineered features
  • Built-in integration with Dask for efficient, cloud-based scaling and Prefect for automation, fault-tolerance, queue management and artifact persistence

Roadmap

Current development priorities and improvements slated for next and beta release are:

  • Addition of visualization methods that produce commonly-required charts via Highcharts
  • Additional machine learning model options, such as XGBoost and CNNs
  • Additional boosting model options, such as RNNs, LSTMs, ARIMA, SARIMA, etc.
  • Addition of more realistic test cases, useful error messages and robust documentation
  • Addition of GPU support via CUDA, CUDF and CUML

Where to get it

The source code is currently hosted on GitHub at: https://github.com/secrettoad/divina

Documentation

divina's documentation is available here.

Binary installers for the latest released version are available at the Python Package Index (PyPI)

pip install divina

Dependencies

Testing

For local integration testing, run the following commands in order to create the necessary Prefect and Min.io containers.

docker pull jhurdle/divina-storage
docker pull jhurdle/divina-prefect
docker run -p 9000:9000 jhurdle/divina-storage 
docker run -p 4200:4200 jhurdle/divina-prefect 
pytest divina/divina/tests

License

AGPL

Background

Work on divina started at Coysu Consulting (a technology consulting firm) in 2020 and has been under active development since then.

Getting Help

For usage questions, the best place to go to is StackOverflow.

Discussion and Development

Most development discussions take place on GitHub in this repo.

Contributing to divina

All contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome.

If you are simply looking to start working with the divina codebase, navigate to the GitHub "issues" tab and start looking through interesting issues.

Release files for divina 2023.3.12.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for divina 2023.3.12.2
File Size Uploaded
divina-2023.3.12.2.tar.gz 44.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for divina 2023.3.12.2
File Interpreter ABI Platform
divina-2023.3.12.2-py3-none-any.whl Python 3 none any Details

Total release size: 44.3 MB

Release files / divina-2023.3.12.2.tar.gz

Download URL divina-2023.3.12.2.tar.gz
Size 44.2 MB
Tags Source
SHA-256 checksum
How to use checksums
a3e36c2ba450e2231692795901b63f089b32f75aeec73c822158f8a35d8b5d77
BLAKE2b-256 checksum
How to use checksums
086df195699b8b4f024c946d29c61ac06e7960389064bd2a9f8096eb4d1b520c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / divina-2023.3.12.2-py3-none-any.whl

Download URL divina-2023.3.12.2-py3-none-any.whl
Size 123.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e9829a5cbabd92981d11dda5ad40533da3c27c70939b7f9689c01be23323097
BLAKE2b-256 checksum
How to use checksums
375d59bc6442bcbb79efc81630a5e9261205beabf6c98bc5c9dfc1a26b919415
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page