Giter Club home page Giter Club logo

avddpg's Introduction

Autonomous Vehicle Reinforcement Learning using DDPG Algorithm v1.1.4

A CLI tool for running DRL experiments on a simulated Autonomous vehicle platoon (or many).

Install

To install, create a venv and install the requirements file. This program is loosely tested on Python 3.6, 3.7 and 3.8

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Note: For simulations to render, you will need gym==0.21.0 pyglet==1.5.23

***Note that on windows you will perform venv/Scripts/Activate instead of source venv/bin/activate.

Run the program

To see what the cli can do, enter the following.

python run.py --help

Training

python run.py tr

To gain insight on configurable parameters, use

python run.py tr --help

A training session will create a .outputs folder within the base of the repo. This folder will contain an experiment folder containing the results.

Reporting

After training, you can generate a latex report in a folder. This can be embedded into an overleaf project as a latex subfile if you like.

python run.py lmany

Note that this command only works if the .outputs folder contains an experiment(s).

Figure Generation

If you wish to compare similar experiments, you can use at the accumulator.py file.

python run.py accumr

This will accumulate experiment results and plot the reward averaged across the seeds in svg files for each platoon.

Re-run simulations

You can re-run simulations on existing experiments, by running the below command and passing the file as an argument

python run.py esim

Notes

You can nest --help on any of the above commands if you cant figure out what to do with the cli.

avddpg's People

Contributors

cboin1996 avatar

Stargazers

 avatar  avatar  avatar  avatar vincent avatar  avatar Xuanlin Zeng avatar  avatar ohhorange avatar  avatar AZore avatar  avatar JT Qi avatar  avatar  avatar  avatar  avatar Kai Jiang avatar  avatar jltian avatar  avatar zhang avatar Maryam Ansarifard avatar xiao avatar  avatar

Watchers

James Cloos avatar wenqingji avatar  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.