Home

Awesome

AutoSTG: Neural Architecture Search for Predictions of Spatio-Temporal Graphs

Framework of ST-MetaNet

This is the PyTorch implementation of AutoSTG in the following paper:


Requirements for Reproducibility

System Requirements:

Library Requirements:


Data Preparation

Unzip dataset/dataset.zip with the following command:

cd dataset
unzip ./dataset.zip

Description of Traffic Data

The description please refers to the repository of DCRNN.


Model Training

src/train_on_gpu0.sh gives an example to search and train the model on the two datasets:

  1. cd src/.
  2. The settings of the models are in the folder model, saved as yaml format.
  3. All trained model will be saved in param/.
  4. Searching and training with the given shell script:
    1. cd src/ .
    2. bash train_on_gpu0.sh. The code will firstly load the best epoch from params/, and then train the models for [epoch].

Model Testing

src/test_on_gpu0.sh gives an example to test the model on the two datasets using the trained models. Here are the instructions to execute the shell script:

  1. cd src/
  2. bash test_on_gpu0.sh.

Note that: The given pre-trained models are trained under PyTorch 1.1.0 and can be loaded under other compatible versions (PyTorch 1.5.0 and 1.6.0 with Python 3.7 are tested) with expected behaviors (i.e., the same predicting error).


Citation

If you find this repository, e.g., the code and the datasets, useful in your research, please cite the following paper:


License

AutoSTG is released under the MIT License (refer to the LICENSE file for details).