Coder Social home page Coder Social logo

drl-continuous-control's Introduction

DRL-continuous-control

Trained Agent

Objective

To train a DDPG agent to control a double-jointed robotic arm to move to target locations.

Background

Environment: UnityML Reacher environment. In this environment, a double-jointed arm can move to target locations. A reward of +0.1 is provided for each step that the agent's hand is in the goal location. Thus, the goal of your agent is to maintain its position at the target location for as many time steps as possible.

Observation Space: The observation space consists of 33 variables corresponding to position, rotation, velocity, and angular velocities of the arm.

Action Space: Each action is a vector with four numbers, corresponding to torque applicable to two joints. Every entry in the action vector should be a number between -1 and 1.

Reward: +0.1 point is provided for each step that the agents's hand is in the goal location.

To consider the problem to be solved, the agent need to get an average of 30+ over 100 consecutive episodes.

Getting Start

Repository

Clone the repository

https://github.com/wjlgatech/DRL-continuous-control.git .

Unity Environment

  1. set up dependencies

To set up your python environment to run the code in this repository, follow the Udacity DRL repo instructions.

  1. Download the environment that match your system:
  1. Put the file in the DRL-continuous-control/ folder, and unzip the file

Jupyter Notebook

Open the Continuous-control.ipynb notebook

jupyter notebook Continuous-control.ipynb

Code Overview

The code consists of the following modules

Continuous_Control.ipynb - the main notebook
Report_continuous_Control.ipynb - the report of this project
ddpg_agent.py - defines the Agent that is to be trained
model.py - the ddpg model with the Actor and the Critic networks
checkpoint_actor.pth - is the final trained Actor network
checkpoint_critic.pth - is the final trained Critic network
train.py - train the ddpg agent
test.py - test the performance of the trained agent

Results

Environment is solved in 273 Episodes with Average Score: 30.03. The plot ddpg_result.png shows the averaged score (over all the agents and over 100 consecutive episodes) is collected over ~300 episodes.

Credits

The implementation of ddpg.py and model.py is adapted from https://github.com/udacity/deep-reinforcement-learning/tree/master/ddpg-bipedal for multiple-agents case.

drl-continuous-control's People

Contributors

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