Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PA2MGCN

Python PyTorch Paper

Official PyTorch implementation of PA2MGCN :Patch Attention Based Adaptive Multi-Head Graph Convolutional Networks for Traffic Flow Forecasting.

🎯 Overview

PA^2MGCN overview
Figure 1. Overall architecture of PA2MGCN.

🛠️ Installation

1. Create Environment

We recommend using Conda.

conda create -n PA2MGCN python=3.9 -y
conda activate PA2MGCN

2. Install Dependencies

pip install -r requirements.txt

📂 Data Preparation

Supported traffic datasets include:

  • METR-LA
  • PeMS-Bay
  • PEMS04
  • PEMS08

Download link:

  • Baidu Netdisk: Link
  • Google Drive: Link

For the SD dataset source, please refer to: LargeST

⚠️ Note for SD data conversion

You need to modify LargeST's original SD data generation code first. By default, LargeST saves his.npz with z-score normalized flow values. PA2MGCN applies its own normalization internally, so using that file directly will cause double normalization. Remove the standardization step from LargeST's save pipeline before converting the SD dataset for PA2MGCN.

Place dataset files under datasets/ with a structure similar to:

PA2MGCN/
├── datasets/
│   ├── METR-LA/
│   ├── PeMS-Bay/
│   ├── PEMS04/
│   ├── PEMS08/
│   └── SD/
├── scripts/
└── ...

🚀 Experiments

The project provides training scripts in scripts/.

Run commands:

chmod 776 ./scripts/train.sh
./scripts/train.sh

🌟 Citation

Paper information is coming soon.


About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages