Giter Site home page Giter Site logo

udacity-drl-navigation's Introduction

Deep Reinforcement Learning : Navigation

This project repository is my implementation for Project 1: Navigation for the Udacity's Deep Reinforcement Learning Nanodegree

Project's Description

For this project we have to train an agent to navigate a large square world and collect yellow bananas. The world contains both yellow and blue banana as depicted in the animated gif below. In Project 1, train an agent to navigate a large world.

Rewards:

  1. The agent is given a reward of +1 for collecting a yellow banana
  2. Reward of -1 for collecting a blue banana.

State Space

Has 37 dimensions and the contains the agents velocity, along with ray-based precpetion of objects around the agents foward direction.

Actions

Four discrete actions are available, corresponding to:

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

Project's goal

The goal for the project is for the to collect as many yellow bananas as possible while avoiding blue bananas. The task is episodic, and in order to solve the environment, the agent must get an average score of +13 over 100 consecutive episodes.

Quick Start Guide to Deep Reinforcement Learning

To understand this implementation you will have to have some understanding of Deep Reinforcement Learning. I provide write-up of my implementation in the . However i recommend reading > Reinforcement learning.

At a high-level Deep Reinformcement Learning is the science behind developing goal-oriented algorithms, which learn how to attain a complex goal from a blank slate. AlphaGo is a famous example of how Deep Reinforcement Learning achieve superhuman performance and defeated the world champion.

This project implement a Value Based method called Deep Q-Networks

The Environment

The environment is based on Unity ML-agents

Note: The project environment for this pr4oject is similar to, but not identical to the Banana Collector environment on the Unity ML-Agents GitHub page.

Exploring the Environment

Step 1: Clone the DRLND Repository

  1. Configure your Python environment by following instructions in the DRLND GitHub repository. These instructions can be found in the Readme.md
  2. By following the instructions you will have PyTorch, the ML-Agents toolkits, and all the Python packages required to complete the project.
  3. (For Windows users) The ML-Agents toolkit supports Windows 10. It has not been test on older version but it may work.

Step 2: Download the Unity Environment

  • For this projects you will need to install the Unity environment as described in the Getting Started section (The Unity ML-agant environment is already configured by Udacity)

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

      Then, place the file in the p1_navigation/ folder in the DRLND GitHub repository, and unzip (or decompress) the file.

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

      (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 environment.

Step 3: Explore the Environment

After you have followed the instructions above, open Navigation.ipynb (located in the p1_navigation/ folder in the DRLND GitHub repository) and follow the instructions to learn how to use the Python API to control the agent.

(Optional) Build your Own Environment

For this project, we have built the Unity environment for you, and you must use the environment files that we have provided.

If you are interested in learning to build your own Unity environments after completing the project, you are encouraged to follow the instructions here, which walk you through all of the details of building an environment from a Unity scene.

Train a agent

There are 2 options for training the Agent:

  1. Execute the provided notebook within this Nanodegree Udacity Online Workspace for "project #1 Navigation".
  2. Or build your own local environment and make necessary adjustements for the path to the UnityEnvironment in the code.

Note: that the Workspace does not allow you to see the simulator of the environment; so, if you want to watch the agent while it is training, you should train locally.

udacity-drl-navigation's People

Contributors

nisheed75 avatar

Stargazers

 avatar Rob Jewsbury avatar Alan Grijalva avatar Sébastien Randoux avatar

Watchers

James Cloos avatar  avatar

Forkers

muhamuttaqien

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.