Coder Social home page Coder Social logo

rl-highwayenv-success_test-'s Introduction

Highway-v0 env RL agent

This RL project aimed to implement an RL agent with pytorch in the highway-v0 environement. Two methods were considered in this project:

  • DQN with Replay memory This method stores the transitions that the agent observes allowing us to reuse this data later. By sampling from it randomly. (file: dqn_memory_reply.py)
  • DQN with Prioritized experience replay This method implements a simple memory buffer replay with priorities on experiences. (file: per.py)

Training

We trained the two models for 400 episodes, we chose a batch size of 32, and a discount factor of 0.8. The other hyperparametrs as well as the structure of the networks are defined in the files in the src folder.

We stored our models in the folder models.

Results

The average score on 50 episodes with "DQN with Replay memory" model is : 26,08. This is the plot duration of episodes in the training.

alt text

The average score on 50 episodes with "DQN with Prioritized experience replay" model is : 29,37. This is the plot duration of episodes in the training.

alt text

Demo

demo

rl-highwayenv-success_test-'s People

Contributors

houssambahhou avatar

Stargazers

 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.