Giter Club home page Giter Club logo

udacity_p2_continuous_control_project's Introduction

Project 2: Continuous Control

Introduction

For this project, the Reacher environment is used to train the agent. In this environment, a double-jointed arm moves to target locations. the agent is trained so that the arm follows a desired trajectory.

Reward

A reward of +0.1 is provided for each time step that the agent's hand is in the goal location.

States

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

Actions

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

Number of Arms in the Environment

The code in this repo solves two separate versions of the Unity environment.

  • The first version contains a single arm.
  • The second version contains 20 identical arms, each with its own copy of the environment. In this version, multiple arms are used to collect feedback in parallel. This version is useful for algorithms like PPO, A3C, and D4PG that use multiple (non-interacting, parallel) copies of the same agent.

Success criteria for Training

Agents must get an average score of +30 (over 100 consecutive episodes, and over all agents).

  • Specifically, after each episode, the rewards that each agent received (without discounting) is added up, to get a score for each agent. Then average of these scores is taken.
  • This yields a moving average score for each episode (where the average is over all agents).
  • The environment is considered solved, when the average (over 100 episodes) of those average scores is greater than 30.

Setting Up the Python Environment

Follow the instructions below to set up your python environment to run the code in this repository,

  1. Create (and activate) a new environment with Python 3.6.

    • Linux or Mac:
    conda create --name drlnd python=3.6
    source activate drlnd
    • Windows:
    conda create --name drlnd python=3.6 
    activate drlnd
  2. Clone the repository DRLND, and navigate to the python/ folder. Then, install several dependencies.

    • git clone https://github.com/udacity/deep-reinforcement-learning.git
      cd deep-reinforcement-learning/python
      pip install .
  3. Create an IPython kernel for the drlnd environment.

    •   python -m ipykernel install --user --name drlnd --display-name "drlnd"
  4. Before running code in the notebooks, change the kernel to match the drlnd environment by using the drop-down Kernel menu.

Setting Up the Unity Environment

  1. Download the environment from one of the links below. You need only select the environment that matches your operating system:

    (For Windows users) Check out this link if you need help with determining if your computer is running a 32-bit version or 64-bit version of the Windows operating system.

  2. Place the file in the directory where you have cloned this project, and unzip (or decompress) the file.

  3. Name the directory where the 20-agent version is unzipped (decompressed) as Reacher20.app and the one agent version as Reacher.app

  4. The repo contains the zip files for the Mac OSX operating system.

Instructions

Run the Continuous_Control_Submission.ipynb notebook to get started.

  1. Navigate to the root directory of this repo.
  2. Start the Jupyter Notebook in the activated drlnd conda environment
    • jupyter notebook
  3. Open Continuous_Control_Submission.ipynb in the Jupyter file browser

Implementation Details

The details can be found in REPORT.ipynb file

udacity_p2_continuous_control_project's People

Contributors

binaryknight avatar

Watchers

James Cloos 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.