# DSANet **Repository Path**: zhouchena1/DSANet ## Basic Information - **Project Name**: DSANet - **Description**: Code for the CIKM 2019 paper "DSANet: Dual Self-Attention Network for Multivariate Time Series Forecasting". - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-09-29 - **Last Updated**: 2021-04-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Dual Self-Attention Network for Multivariate Time Series Forecasting This project is the PyTorch implementation of the paper "[DSANet: Dual Self-Attention Network for Multivariate Time Series Forecasting](https://dl.acm.org/citation.cfm?doid=3357384.3358132)", in which we propose a dual self-attention network (DSANet) for multivariate time series forecasting. The network architecture is illustrated in the following figure, and more details about the effect of each component can be found in the paper. ![](https://raw.githubusercontent.com/bighuang624/DSANet/master/docs/DSANet-model-structure.png) ## Requirements * Python 3.5 or above * PyTorch 1.1 or above * pytorch-lightning ## How to run You need to prepare the dataset first. Check [here](https://github.com/bighuang624/DSANet/blob/master/data/README.md). ```bash # clone project git clone https://github.com/bighuang624/DSANet.git # install dependencies cd DSANet pip install requirements.txt # run python single_cpu_trainer.py --data_name {data_name} --n_multiv {n_multiv} ``` **Notice:** At present, we find that there are some bugs (presumably some problems left by the old version of pytorch-lightning) that make our code unable to run correctly on GPUs. You can currently run the code on the CPU as above. ## Citation If our code is helpful for your research, please cite our paper: ``` @inproceedings{Huang2019DSANet, author = {Huang, Siteng and Wang, Donglin and Wu, Xuehan and Tang, Ao}, title = {DSANet: Dual Self-Attention Network for Multivariate Time Series Forecasting}, booktitle = {The 28th ACM International Conference on Information and Knowledge Management (CIKM 2019)}, month = {November}, year = {2019}, address = {Beijing, China} } ``` ## Acknowledgement Part of the code is heavily borrowed from [jadore801120/attention-is-all-you-need-pytorch](https://github.com/jadore801120/attention-is-all-you-need-pytorch).