Giter Site home page Giter Site logo

udacity_deeprl_p1_navigation's Introduction

Udacity Deep Reinforcement Nanodegree

This repository contains my project submission for project 1 of Udacity's [Deep RL Nanodegree program](https://www.udacity.com/course/deep-reinforcement-learning-nanodegree--nd893)

Project 1: Navigation

Environment Details

This environment provided by Udacity is similar to Unity's Banana Collector Environment where we have to collect randomly spawned bananas in a fixed area.

navigation

The agent is in first person and the goal is to collect as many yellow bananas as possible while avoiding blue bananas.
The task is episodic where each episode terminates after 1000 steps. The environment is considered solved when the trained agent obtains an average score of 13 over 100 consecutive episodes.

The state space has 37 dimensions and contains the agent's velocity, along with ray-based perception of objects around the agent's forward direction. Given this information, the agent has to learn how to best select actions. Four discrete actions are available:

  • 0 - move forward.
  • 1 - move backward.
  • 2 - turn left.
  • 3 - turn right.

To achieve our goal, the environment rewards the following:

+1 when a yellow banana is picked
 -1 when a blue banana is picked
  0 for every other event

In this specific case, when the cumulative reward exceeds 13 the training is stopped as the agent is considered to have generalized well to the task.

Getting Started

Installation requirements

  • You first need to configure a Python 3.6 / PyTorch 0.4.0 environment with the needed requirements as described in the Udacity repository.
  • You then have to clone this project and have it accessible in your Python environment
  • Following that, install the unity environment as described here -Download the environment from one of the links below. You need only select the environment that matches your operating system:
    • Linux: click here
    • Mac OSX: click here
    • Windows (32-bit): click here
    • Windows (64-bit): click here
  • Then, Follow the instructions in Navigation.ipynb to get started with training your own agent!

Misc : Configuration used

This agent has been trained on the Udacity provided online workspace. This environment allows to use a Nvidia K80 GPU that is used for the training. (The headless / no visualization version of the Unity environment was thus used)

My setup is a "Deep Learning Dev Box", and is basically a Linux GPU Server, running Docker containers (using Nvidia Docker 2), serving Jupyter Lab notebooks which are accessed remotely via a web interface (or a ssh connection) : unfortunately this setup does not seem suitable to run Unity ML agent, with the GPU and providing a display for for the agent (See Unity documentation for more details)

udacity_deeprl_p1_navigation's People

Contributors

p-cyan 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.