Code Monkey home page Code Monkey logo

traffic-benchmark's Introduction

Traffic Prediction Benchmark

Python 3.6 PyTorch 1.7 License CC BY-NC-SA

This is the origin Pytorch implementation of DGCRN together with baselines in the following paper:



Figure 1. The architecture of DGCRN.

Model Classification

We classify the related works based on four parts: spatial topology construction, spatial dependency modeling, temporal dependency modeling and external features, as shown in the figure below, where the baselines in the benchmark are In bold type.



Figure 2. The classification of related works .

Requirements

  • Python 3.6
  • numpy == 1.19.4
  • pandas == 1.1.1
  • torch >= 1.1
  • mxnet == 1.4.1
  • tensorflow >= 2.4.0

Dependencies can be installed using the following command:

pip install -r requirements.txt

Data

  • The description of METR-LA dataset and PEMS_BAY dataset please refers to the repository of DCRNN.

  • The NE-BJ dataset used in the paper can be downloaded, which will be available soon.



Figure 3. Road segment distribution of the NE-BJ dataset.



Figure 4. Comparisons among datasets.

Usage

Commands for training model:

python train_benchmark.py --model 'model_name' --data 'data_name' >> log.txt 

More parameter information can be found in train_benchmark.py or the file in the directory of corrsponding model. You can refer to these parameters for experiments, and you can also adjust the parameters to obtain better results.

Results



Figure 5. Results of benchmark.

Citation

If you find this repository useful in your research, please consider citing the following paper:

@misc{li2021dynamic,
      title={Dynamic Graph Convolutional Recurrent Network for Traffic Prediction: Benchmark and Solution}, 
      author={Fuxian Li and Jie Feng and Huan Yan and Guangyin Jin and Depeng Jin and Yong Li},
      year={2021},
      eprint={2104.14917},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

This repository will be updated and the code of DGCRN will be available soon.

Moreover, the PyTorch version of baselines like GMAN and STSGCN is on the way~

traffic-benchmark's People

Contributors

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