Giter VIP home page Giter VIP logo

rl_algos's Introduction

Disclaimer - This is a repository containing the assignments of 10703 - Deep Reinforcement Learning & Control for Spring'18. If you are currently taking the course, please do NOT refer to this repo. Any kind of code copying or referencing will be treated as plagiarism and results in serious disciplinary action at CMU.

Implementations of RL algorithms-

  • DQN
  • Advantage Actor-Critic
  • Imitation Learning
  • REINFORCE
  • Dueling DQN
CartPole Mountain Car LunarLander
CartPole MountainCar LunarLander

Requirements-

  • TensorFlow
  • Keras
  • Gym Box2D envs

To run DQN and Dueling DQN -
python DQN_Implementation.py with the following arguments-

Argument Description
--env=ENVIRONMENT_NAME CartPole-v0, MountainCar-v0, LunarLander-v2
--render=1 OR 0 variable to enable render(1) or not(0)
--train=1 OR 0 variable to train(1) the model or not(0)
--type=MODEL_TYPE DQN,Dueling
--save_folder=FOLDER_DIR folder directory to save videos (Optional). Videos are not saved if nothing is given
--model_file=FILE_DIR File directory of saved model(Optional). Nothing is done if not given

HyperParameters have been sectioned for easy alteration. You should be able to locate them easily by just searching 'Hyper'.

To run -

  • Advantage-Actor Critic - python a2c.py
  • REINFORCE - python reinforce.py --render
  • Imitation - python imitation --render (Weights are only for LunarLander-v2)

rl_algos's People

Contributors

satyenrajpal avatar

Watchers

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