Coder Social home page Coder Social logo

ddpg-reconstruction's Introduction

DDPG-paper-implementation

Implementation of Continuous control with deep reinforcement learning paper together with Stochastic Weighted Average (using pytorch) for a better stability

Alt Text

File descriptions:

  1. DDPG.py - main file where DDPG traning, testing and plotting results is defined. Current version uses torchcontrib’s SWA version, SWA_start variable is set in timestep units.
  2. utils.py - utils classes and functions. Main utils:
    • ReplayBuffer - List of all past states and their information ('state', 'action', 'next_state', 'reward', 'terminal')
    • OU_Noise - Ornstein–Uhlenbeck process noise
  3. requirements.txt - python dependencies. Install by using pip install -r /path/to/requirements.txt

Encountered issues:

  • I’m using mixture of Adam and SWA, setting SWA to 1/5th learning rate of Adam in the moment of swapping, I haven’t yet tested with SGD, since convergences time takes ages
  • Unable to normalize self-implemented SWA due to being unable to connect DataLoader function together with the gym environment

Further improvements:

There is still a lot of room for improvement, further testing and fine-tunning some of them include:

  • Using different optimizers: Adam/SGD/AdaGrad with different learning rates & learning rate decays
  • learning rate decays based on current convergence
  • Swapping SWA weights and continuing the training
  • Using different type Noise
  • Changing the size of the buffer to smaller over time so that we only experience the most recent states
  • Different neural network weight initializations, layer sizes, Actor/Critic architecture (more research on the impact of size/number of hidden layers to be conducted)

ddpg-reconstruction's People

Contributors

szczekulskij avatar

Stargazers

 avatar

Watchers

 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.