Giter Club home page Giter Club logo

udacity-reinforcement-navigation-project's Introduction

Udacity reinforcement learning navigation project

A solution to the first project of Udacities Reinforcement Learning course.

game-screenshot

Project details

This projects runs from Jupyter and has all of the code required in order to train and play back an agent.

Goal

The goal of the project is to train an agent to navigate and pick up as many yellow bannanas as possible.

Rewards

You will receive a reward of +1 for collecting a yellow bannana and a reward of -1 for collecting a blue bannana.

State

The state space consists of 37 dimentions and has a ray-based perception of objects in the agents forward direction.

Actions

There are 4 different actions the agent can use which relates to:

  • 0 Forward
  • 1 Backward
  • 2 Left
  • 3 Right

Solved

This project is solved if the agent scores more than 13 points over 100 consecutive episodes.

Getting started

You will need to install Anaconda in order to run through the following dependency instructions.

All of the dependencies for this project can be found at: https://github.com/udacity/deep-reinforcement-learning#dependencies

Instructions

Inside of the Jupyter notebook, run the first code block to import all the necessary libraries to run the rest of the code blocks.

The second code block loads the Unity environement and specifies the brain name.

Deep_Q_Network (the third code block) is the deep network that is used within this project. It consists of dynamic hidden layers (so that you can change it while finding the best combination easier) and Relu activations functions.

Fourth code block is the Agent. The agent is used to determine the actions to take as well as interacts with the deep network to learn and better determine actions to increase environment rewards.

The training block runs through the specified episodes, receives the actions from the agent and passes it back to the environment. It also saves the score and model if the score is more than what is specified in the checkpoint.

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.