Giter Site home page Giter Site logo

drl_assignment2's Introduction

Deep Reinforcement Learning - Homework 2

General Notes: (1). Entire codebase is in DQN_Implementation.py file. (2). This script only takes the environment name as input from command line. (3). All other parameters are set within the script at the time of initializing the DQN_Agent() class.

Q.1.

Running Linear QN for CartPole and no experience replay: On line 371 set "self.model_type='linear_dqn'" On line 372 set "self.train_type='no_replay_memory'" python DQN_Implementation.py --env=CartPole-v0

Running Linear DQN for MountainCar and no experience replay: On line 375 set "self.train_type='no_replay_memory'" On line 376 set "self.model_type='linear_dqn'" python DQN_Implementation.py --env=MountainCar-v0

Whenever replay experience is not used. We do the training of network in a stochastic fashion (one sample at a time, no mini-batch).

Q.2.

Running Linear QN for CartPole and with experience replay: On line 371 set "self.model_type='linear_dqn'" On line 372 set "self.train_type='use_replay_memory'" python DQN_Implementation.py --env=CartPole-v0

Running Linear DQN for MountainCar and with experience replay: On line 375 set "self.train_type='use_replay_memory'" On line 376 set "self.model_type='linear_dqn'" python DQN_Implementation.py --env=MountainCar-v0

Wheneve replay experience is use. We do the training of network at mini-batch level. Batch size is kept as 32 always.

Q.3.

Running Deep Q-Network for CartPole with no experience replay: On line 371 set "self.model_type='dqn'" On line 372 set "self.train_type='no_replay_memory'" python DQN_Implementation.py --env=CartPole-v0

Running Deep Q-Network for CartPole and with experience replay: On line 371 set "self.model_type='dqn'" On line 372 set "self.train_type='use_replay_memory'" python DQN_Implementation.py --env=CartPole-v0

Running Deep Q-Network for MountainCar and no experience replay: On line 375 set "self.train_type='no_replay_memory'" On line 376 set "self.model_type='dqn'" python DQN_Implementation.py --env=MountainCar-v0

Running Deep Q-Network for MountainCar and no experience replay: On line 375 set "self.train_type='use_replay_memory'" On line 376 set "self.model_type='dqn'" python DQN_Implementation.py --env=MountainCar-v0

Wheneve replay experience is use. We do the training of network at mini-batch level. Batch size is kept as 32 always. Whenever replay experience is not used. We do the training of network in a stochastic fashion (one sample at a time, no mini-batch).

Q.4.

Running Dueling DQN for CartPole with no experience replay: On line 371 set "self.model_type='ddqn'" On line 372 set "self.train_type='no_replay_memory'" python DQN_Implementation.py --env=CartPole-v0

Running Dueling DQN for CartPole and with experience replay: On line 371 set "self.model_type='ddqn'" On line 372 set "self.train_type='use_replay_memory'" python DQN_Implementation.py --env=CartPole-v0

Running Dueling DQN for MountainCar and no experience replay: On line 375 set "self.train_type='no_replay_memory'" On line 376 set "self.model_type='ddqn'" python DQN_Implementation.py --env=MountainCar-v0

Running Dueling DQN for MountainCar and no experience replay: On line 375 set "self.train_type='use_replay_memory'" On line 376 set "self.model_type='ddqn'" python DQN_Implementation.py --env=MountainCar-v0

Wheneve replay experience is use. We do the training of network at mini-batch level. Batch size is kept as 32 always. Whenever replay experience is not used. We do the training of network in a stochastic fashion (one sample at a time, no mini-batch).

Q.5.

Running image based DQN for SpaceInvades with experience replay: python DQN_Implementation.py --env=SpaceInvaders


drl_assignment2's People

Contributors

sowmya-mp avatar

Watchers

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