MCPcopy Index your code
hub / github.com/ServiceNow/TACTiS

github.com/ServiceNow/TACTiS @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
153 symbols 492 edges 16 files 127 documented · 83%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

TACTiS: Transformer-Attentional Copulas for Time Series

Alexandre Drouin, Étienne Marcotte, Nicolas Chapados (2022). TACTiS: Transformer-Attentional Copulas for Time Series. International Conference on Machine Learning (ICML 2022).

The estimation of time-varying quantities is a fundamental component of decision making in fields such as healthcare and finance. However, the practical utility of such estimates is limited by how accurately they quantify predictive uncertainty. In this work, we address the problem of estimating the joint predictive distribution of high-dimensional multivariate time series. We propose a versatile method, based on the transformer architecture, that estimates joint distributions using an attention-based decoder that provably learns to mimic the properties of non-parametric copulas. The resulting model has several desirable properties: it can scale to hundreds of time series, supports both forecasting and interpolation, can handle unaligned and non-uniformly sampled data, and can seamlessly adapt to missing data during training. We demonstrate these properties empirically and show that our model produces state-of-the-art predictions on multiple real-world datasets.

[Paper] [Spotlight video]

Citing this work

Please use the following Bibtex entry to cite TACTiS.

@InProceedings{pmlr-v162-drouin22a,
  title =    {{TACT}i{S}: Transformer-Attentional Copulas for Time Series},
  author =       {Drouin, Alexandre and Marcotte, \'Etienne and Chapados, Nicolas},
  booktitle =    {Proceedings of the 39th International Conference on Machine Learning},
  pages =    {5447--5493},
  year =     {2022},
  editor =   {Chaudhuri, Kamalika and Jegelka, Stefanie and Song, Le and Szepesvari, Csaba and Niu, Gang and Sabato, Sivan},
  volume =   {162},
  series =   {Proceedings of Machine Learning Research},
  month =    {17--23 Jul},
  publisher =    {PMLR},
  pdf =      {https://proceedings.mlr.press/v162/drouin22a/drouin22a.pdf},
  url =      {https://proceedings.mlr.press/v162/drouin22a.html}
}

Vulnerability Reporting

Please notify psirt-oss@servicenow.com regarding any vulnerability reports in addition to following current reporting procedure.

Core symbols most depended-on inside this repo

_merge_series_time_dims
called by 15
tactis/model/decoder.py
_count_timesteps
called by 7
tactis/gluon/dataset.py
quantile
called by 7
tactis/gluon/plots.py
forward
called by 7
tactis/model/tactis.py
_easy_mlp
called by 6
tactis/model/decoder.py
forward_no_logdet
called by 6
tactis/model/marginal.py
_split_series_time_dims
called by 5
tactis/model/decoder.py
normalize
called by 5
tactis/model/tactis.py

Shape

Method 82
Function 46
Class 25

Languages

Python100%

Modules by API surface

tactis/model/decoder.py20 symbols
tests/model/test_decoder.py18 symbols
tactis/model/tactis.py16 symbols
tactis/lightning/data.py15 symbols
tests/model/test_tactis.py11 symbols
tactis/model/flow.py11 symbols
tactis/gluon/metrics.py9 symbols
tactis/model/encoder.py8 symbols
tactis/lightning/model.py8 symbols
tactis/gluon/estimator.py8 symbols
tactis/gluon/dataset.py8 symbols
tactis/gluon/network.py6 symbols

For agents

$ claude mcp add TACTiS \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact