TACTiS-2: Better, Faster, Simpler Attentional Copulas for Multivariate Time Series
Arjun Ashok, Étienne Marcotte, Valentina Zantedeschi, Nicolas Chapados, Alexandre Drouin (2023). TACTiS-2: Better, Faster, Simpler Attentional Copulas for Multivariate Time Series. (Preprint)
We introduce a new model for multivariate probabilistic time series prediction, designed to flexibly address a range of tasks including forecasting, interpolation, and their combinations. Building on copula theory, we propose a simplified objective for the recently-introduced transformer-based attentional copulas (TACTiS), wherein the number of distributional parameters now scales linearly with the number of variables instead of factorially. The new objective requires the introduction of a training curriculum, which goes hand-in-hand with necessary changes to the original architecture. We show that the resulting model has significantly better training dynamics and achieves state-of-the-art performance across diverse real-world forecasting tasks, while maintaining the flexibility of prior work, such as seamless handling of unaligned and unevenly-sampled time series.
Installation
You can install the TACTiS-2 model with pip:
pip install tactis
Alternatively, the research version installs gluonts and pytorchts as dependencies which are required to replicate experiments from the paper:
pip install tactis[research]
Note: tactis has been currently tested with Python 3.10.8.
Instructions
With the research version of the code, train.py can be used to train the TACTiS-2 model for a specific dataset. The arguments in train.py can be used to specify the dataset, the training task (forecasting or interpolation), the hyperparameters of the model and a whole range of other training options.
There are notebooks in the that are useful in guiding training and evaluation pipeline setups: random_walk.ipynb demonstrates TACTiS-2 on a simple low-dimensional random walk dataset, and gluon_fred_md_forecasting.ipynb demonstrates how to train and evaluate TACTiS-2 on the FRED-MD dataset used in the paper. Note that the gluon_fred_md_forecasting.ipynb notebook requires GluonTS and PyTorchTS to be installed.
Note
For an implementation of the original version of TACTiS, please see here.
Citing this work
Please use the following Bibtex entry to cite TACTiS-2.
@misc{ashok2023tactis2,
title={TACTiS-2: Better, Faster, Simpler Attentional Copulas for Multivariate Time Series},
author={Arjun Ashok and Étienne Marcotte and Valentina Zantedeschi and Nicolas Chapados and Alexandre Drouin},
year={2023},
eprint={2310.01327},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
Metadata
Release files for tactis 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tactis-0.1.3.tar.gz | 47.9 kB | Without provenance | Details for tactis-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tactis-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for tactis-0.1.3-py3-none-any.whl |
Total release size: 104.4 kB
Release files / tactis-0.1.3.tar.gz
| Download URL | tactis-0.1.3.tar.gz |
|---|---|
| Size | 47.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a622506c8413912ae5f57b7e10583776775de44f09814f27821b849ec9a324cd
|
|
BLAKE2b-256 checksum How to use checksums |
bf77f54b507131890741af41fdd91e230a63efacda76c07b3e1ff045e11f8ad5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Release files / tactis-0.1.3-py3-none-any.whl
| Download URL | tactis-0.1.3-py3-none-any.whl |
|---|---|
| Size | 56.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7545746eaa816ceae700ce52feb0042b230c46240665dc4100365359fbaff047
|
|
BLAKE2b-256 checksum How to use checksums |
69f34474a90988421ba0b04cde4492d94bed255aff82effbe009e849a4e65d8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Security for tactis 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.