Giter VIP home page Giter VIP logo

metalight's Introduction

MetaLight

MetaLight is a value-based meta-reinforcement learning framework for traffic signal control. This repository includes the detailed implementation of our MetaLight paper which was published in AAAI 2020.

Usage and more information can be found below.

Dataset

This repo contrains four real-world datasets (Hangzhou, Jinan, Atlanta, and Los Angeles) which are stored in the data.zip. Please unzip it first before you run the code. More descriptions about the dataset can be found in our MetaLight paper.

Installation Guide

Dependencies

Quick Start

We recommend to run the code through docker and a sample docker image has been built for your quick start.

  1. Please pull the docker image from the docker hub. docker pull synthzxs/metalight:latest (Alternatively, you can use the docker/dockerfile to build the docker image directly on your linux system)

  2. Please pull the codes for MetaLight from this repo. git clone https://github.com/zxsRambo/metalight.git

  3. Please run the built docker image, synthzxs/metalight:latest, to initiate a docker container. Please remember to mount the code directory. docker run -it -v /local_path_to_the_code/metalight/:/metalight/ synthzxs/metalight:latest /bin/bash Up to now, the experiment environment has been set up. Then, go the workspace in the docker contrainer, cd /metalight, and try to run the code.

Example

Start an example:

sh run_exp.sh

In this utils, it runs the file meta_train.py. Here are some important arguments that can be modified for different experiments:

  • memo: the memo name of the experiment
  • algorithm: the specified algorithm, e.g., MetaLight, FRAPPlus.

Hyperparameters such as learning rate, sample size and the like for the agent can also be assigned in our code and they are easy to tune for better performance.

Link

Citation

If you find this work useful in your research, please cite our paper "MetaLight: Value-based Meta-reinforcement Learning for Traffic Signal Control".

@inproceedings{metalight,
  title={MetaLight: Value-based Meta-reinforcement Learning for Traffic Signal Control},
  author={Zang, Xinshi and Yao, Huaxiu and Zheng, Guanjie and Xu, Nan and Xu, Kai and Li, Zhenhui},
  booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
  year={2020}
}

metalight's People

Contributors

zyr17 avatar zxsrambo 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.