Giter VIP home page Giter VIP logo

deeprl_continuouscontrol_reacher's Introduction

Deep RL Continuous Control Reacher

Udacity Deep Reinforcement Learning Nanodegree, second project "Continuous Control"

Project 2: Continuous Control

Environment

In this project, the Reacher environment with 20 agents is solved. The goal is to move the robotic arms to a target location each.

Trained Agent

Rewards

In this environment, 20 double-jointed arms can move to target locations. A reward of +0.1 is provided for each step that one agent's hand is in the goal location. Thus, the goal of each arm is to maintain its position at the target locations for as many time steps as possible. The environment is considered solved, when the average (over 100 episodes) of those average scores (of all the agents) is at least +30.

States and Actions

The observation space consists of 33 variables corresponding to position, rotation, velocity, and angular velocities of each arm. Each action (for one arm) 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.

Files in this Repository

.
├── checkpoint_actor_128x128.pth          # stored weights for trained actor network (2 hidden 128 unit layers)
├── checkpoint_actor.pth                  # latest stored weights for trained actor network
├── checkpoint_critic_128x128.pth         # stored weights for trained critic network (2 hidden 128 unit layers)
├── checkpoint_critic.pth                 # latest stored weights for trained critic network
├── Continuous_Control.ipynb              # main code for training and testing the agent
├── ddpg_agent.py                         # agent to interact and learn from environment
├── model.py                              # neural network model (in Pytorch)
├── Report.pdf                            # report of the implementation and details of the learning algorithm
└── README.md

Python Packages

  • collections
  • copy
  • matplotlib
  • numpy
  • random
  • torch
  • unityagents

Note: The Unity environment did not work on Mac OS for Python version 3.7 and higher. Python version 3.6 worked well.

Downloading the Environment

You need only select the environment that matches your operating system:

Twenty (20) Agents:

Place the application in the same directory before executing.

(For AWS) If you'd like to train the agent on AWS (and have not enabled a virtual screen), then please use this link to obtain the "headless" version of the environment. You will not be able to watch the agent without enabling a virtual screen, but you will be able to train the agent. (To watch the agent, you should follow the instructions to enable a virtual screen, and then download the environment for the Linux operating system above.)

Instructions

Follow the instructions in Continuous_Control.ipynb to get started with training your own agent!

deeprl_continuouscontrol_reacher's People

Contributors

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