Home

Awesome

MH-ASTIGCN

Note: The latest version is in the latest branch, i.e. https://github.com/SYLan2019/MH-ASTIGCN/tree/latest

Multi-Head Self-Attention Based Spatial-Temporal Information Graph Convolutional Networks for Traffic Flow Forecasting

model architecture

References

Requirements

Datasets

Step 1: MH-ASTIGCN is implemented on those several public traffic datasets.

Step 2: Process dataset

Temporal Information Graph Construction

If traffic data is available, TIG could also be generated by code:

cd ./data/
python Temporal_Graph_gen.py

The shape of input traffic data should be "(Total_Time_Steps, Node_Number)". For example, in PEMS08 dataset, it has 170 roads and 62 days data. Thus its shape is (62*288, 170).

The calculation uses CPU, which should be prepared for enough computation resources.

Test

<!-- - visualize training progress: ``` tensorboard --logdir logs --port 6006 ``` then open [http://127.0.0.1:6006](http://127.0.0.1:6006) to visualize the training process. -->

Configuration

The configuration file config.conf contains two parts: Data, Training:

Data

Training