GithubHelp home page GithubHelp logo

mengboy1 / ddpg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cookbenjamin/ddpg

0.0 0.0 0.0 6 KB

Clean Python Implementation of the Deep Deterministic Policy Gradients Algorithm

Python 100.00%

ddpg's Introduction

DDPG: Deep Deterministic Policy Gradients

A clean python implementation of an Agent for Reinforcement Learning with Continuous Control using Deep Deterministic Policy Gradients.

DDPG on TORCS

Overview:

DDPG is a reinforcement learning algorithm that uses deep neural networks to approximate policy and value functions. If you are interested in how the algorithm works in detail, you can read the original DDPG paper here

Continuous control with deep reinforcement learning

The algorithm consists of two networks, an Actor and a Critic network, which approximate the policy and value functions of a reinforcement learning problem.

The name DDPG, or Deep Deterministic Policy Gradients, refers to how the networks are trained. The value function is trained with normal error and backpropagation, while the Actor network is trained with gradients found from the critic network. You can read the fascinating original paper on deterministic policy gradients here.

Deterministic Policy Gradient Algorithms

The DDPG algorithm is useful because, in very few lines of code (this project is approximately 150 lines excluding comments), you can learn a control algorithm for many different agents, including ones with complex configurations, continuous actions, and high dimensional state spaces (e.g. image data). Even better, the same code can be used to train a humanoid robot, a drone, or a car, or any robotic configuration you can think of, Making this project highly reusable.

Actor Network

The actor network approximates the policy function:

A(s) -> a

where s represents a state, and a represents an action.

Critic Network

The critic network approximates the value function:

C(s, a) -> q

where s represents a state, a represents an action, and q represents the value of the given state action pair.

Future:

Some ideas for future improvements are as follows:

  • Support for convolutional neural networks in order to support high dimensional states (such as pixels from camera input)
  • Support for Recurrent Networks for input data

Let me know of any other ideas you may have :)

Thanks to:

This project is inspired by

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.