Skip to content
프로젝트

guoshnBJTU/ASTGCN-2019-pytorch

GitHub에서 보기

소개

교통 흐름 예측을 위한 어텐션 기반 시공간 그래프 합성곱 네트워크, AAAI 2019, PyTorch 버전

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

ASTGCN

Attention Based Spatial-Temporal Graph Convolutional Networks for Traffic Flow Forecasting (ASTGCN)

image-20200103164326338

This is a Pytorch implementation of ASTGCN and MSTCGN. The pytorch version of ASTGCN released here only consists of the recent component, since the other two components have the same network architecture.

Reference

@inproceedings{guo2019attention,
  title={Attention based spatial-temporal graph convolutional networks for traffic flow forecasting},
  author={Guo, Shengnan and Lin, Youfang and Feng, Ning and Song, Chao and Wan, Huaiyu},
  booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
  volume={33},
  pages={922--929},
  year={2019}
}

Configuration

Step 1: The loss function and metrics can be set in the configuration file in ./configurations

Step 2: The last three lines of the configuration file are as follows:

loss_function = masked_mae
metric_method = mask
missing_value = 0.0

loss_function can choose 'masked_mae', 'masked_mse', 'mae', 'mse'. The loss function with a mask does not consider missing values.

metric_method can choose 'mask', 'unmask'. The metric with a mask does not evaluate missing values.

The missing_value is the missing identification, whose default value is 0.0

Datasets

Step 1: Download PEMS04 and PEMS08 datasets provided by ASTGNN.

Step 2: Process dataset

  • on PEMS04 dataset

    python prepareData.py --config configurations/PEMS04_astgcn.conf
    
  • on PEMS08 dataset

    python prepareData.py --config configurations/PEMS08_astgcn.conf
    

Train and Test

  • on PEMS04 dataset

    python train_ASTGCN_r.py --config configurations/PEMS04_astgcn.conf
    
  • on PEMS08 dataset

    python train_ASTGCN_r.py --config configurations/PEMS08_astgcn.conf
    

관련 프로젝트 살펴보기

불러오는 중…