Git Product home page Git Product logo

lmissher / stwave Goto Github PK

View Code? Open in Web Editor NEW
64.0 2.0 4.0 133 KB

[ICDE'2023] When Spatio-Temporal Meet Wavelets: Disentangled Traffic Forecasting via Efficient Spectral Graph Attention Networks

Home Page: https://ieeexplore.ieee.org/document/10184591

Python 100.00%
graph-attention-networks graph-neural-networks graph-wavelets intelligent-transportation-systems time-series-forecasting traffic-forecasting urban-computing wavelet-transform graph-transformer icde2023

stwave's Introduction

[ICDE'2023] STWave

📖 Introduction

This is a official PyTorch implementation of the paper: When Spatio-Temporal Meet Wavelets: Disentangled Traffic Forecasting via Efficient Spectral Graph Attention Networks.

PWC PWC PWC PWC

⚡ Environment

  • PyTorch
  • fastdtw
  • PyWavelets

🔧 Data Preparation

PeMSD3 & PeMSD4 & PeMSD7 & PeMSD8

  • Download the data PeMSD* with code: p72z.
  • Unzip them to corresponding folders.

PeMSD7(M) & PeMSD7(L)

  • Download the data PeMSD7(M).

  • Email authors of STGCN to get the data PeMSD7(L).

Tips

  • The name of downloaded datasets should be consistent with the name in config files.

📂 Folder Structure

└── code-and-data
    ├── config                 # Including detail configurations
    ├── cpt                    # Storing pre-trained weight files (should be created)
    ├── data                   # Including adj files and the main data should be downloaded
    ├── lib
    │   |──  utils.py          # Codes of preprocessing datasets and calculating metrics
    │   |──  graph_utils.py    # Codes of calculating eigens and deriving the temporal graph
    ├── log                    # Storing log files (should be created)
    ├── model
    │   |──  models.py         # The core source code of our STWave
    ├── mian.py                # This is the main file for training and testing
    └── README.md              # This document

🚀 Run

Given the example of PeMSD8

mkdir ./cpt/PeMSD8
mkdir ./log/PeMSD8
python main.py --config config/PeMSD8.conf

💬 Citation

If you find our work is helpful, please cite as:

@inproceedings{fang2023spatio,
  title={When spatio-temporal meet wavelets: Disentangled traffic forecasting via efficient spectral graph attention networks},
  author={Fang, Yuchen and Qin, Yanjun and Luo, Haiyong and Zhao, Fang and Xu, Bingbing and Zeng, Liang and Wang, Chenxing},
  booktitle={2023 IEEE 39th International Conference on Data Engineering (ICDE)},
  pages={517--529},
  year={2023},
  organization={IEEE}
}

👍 Contributing

We welcome contributions and suggestions!

stwave's People

Contributors

lmissher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

stwave's Issues

关于超参数

您好,请问代码中有两个超参数一个是head,一个是dims,它们分别代表的是什么?我的数据集是一个6节点的数据,我生成adj.npy文件后,必须将heads*dims=节点数时程序才可以运行。

数据读取问题

现在的代码是直接读取flow.npz文件的,但是提供的PEMSD4等数据集仍然是三个特征的,建议把数据读取那边优化一下更方便其他人使用。

这个dtw矩阵没有保存功能吗,发现每跑一次需要等好久生成才行

关于Figure 4

你好,想请教下论文里这个图是怎么画的呀?
image

小波基的选择

你好,我想问一下DWT中,您是怎么选择小波变换的小波基的

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.