Giter Site home page Giter Site logo

autostg's Introduction

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:

  • System: Ubuntu 16.04
  • Language: Python 3.5
  • Devices: a single GeForce GTX 1080 Ti CPU

Library Requirements:

  • numpy == 1.19.1
  • pandas == 1.1.1
  • torch == 1.1.0
  • torchvision == 0.3.0
  • tables == 3.6.1
  • ruamel.yaml == 0.16.12

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).

autostg's People

Contributors

autostg avatar panzheyi avatar

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.