Code Monkey home page Code Monkey logo

kdd2022-quatformer's Introduction

Quatformer (KDD 2022 paper)

  • Weiqi Chen, Wenwei Wang, Bingqing Peng, Qingsong Wen, Tian Zhou, Liang Sun, "Learning to Rotate: Quaternion Transformer for Complicated Periodical Time Series Forecasting" in Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD 2022), 2022. [paper]

Quaternion Transformer (Quatformer) introduce quternion to model complicated periodical patterns (i.e., muliple periods, variable periods, and phase shift) in time series which also has a linear complexity with decoupling attention. Our empirical studies with six benchmark datasets verify its effectiveness.

Get Started

  1. Install Python 3.6, PyTorch 1.9.0.
  2. Install other dependencies by:
pip install -r requirements.txt
  1. Download data. You can obtain all the six benchmarks from [Autoformer] or [Informer].
  2. Train the model. We provide the experiment scripts of all benchmarks under the folder ./scripts. You can reproduce the experiment results by:
bash ./scripts/ETT_script/Quatformer.sh
bash ./scripts/ECL_script/Quatformer.sh
bash ./scripts/Exchange_script/Quatformer.sh
bash ./scripts/Traffic_script/Quatformer.sh
bash ./scripts/Weather_script/Quatformer.sh
bash ./scripts/ILI_script/Quatformer.sh

Citation

If you find this repo useful, please cite our paper.

@inproceedings{chen2022quatformer,
  title={Learning to Rotate: Quaternion Transformer for Complicated Periodical Time Series Forecasting},
  author={Chen, Weiqi and Wang, Wenwei and Peng, Bingqing and Wen, Qingsong and Zhou, Tian and Sun, Liang},
  booktitle={Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  pages={146--156},
  year={2022}
}

Contact

If you have any question or want to use the code, please contact [email protected].

Acknowledgement

We appreciate the following github repos a lot for their valuable code base or datasets:

https://github.com/thuml/Autoformer

https://github.com/zhouhaoyi/Informer2020

https://github.com/zhouhaoyi/ETDataset

https://github.com/laiguokun/multivariate-time-series-data

kdd2022-quatformer's People

Contributors

vc12301 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.