Skip to content

My implementation of the first project from Udacity's Deep Reinforcement Learning Nanodegree course

Notifications You must be signed in to change notification settings

smejak/Udacity-DeepRL-Nanodegree-P1-Navigation

Repository files navigation

Udacity-DeepRL-Nanodegree-P1-Navigation

This repository consists of my implementation of the first project from Udacity's Deep Reinforcement Learning Nanodegree course.

Project details

This project consists of a reinforcement learning agent which solves the Banana navigation environment based on Unity machine learning problems. See Unity ML-agents for more details.

The environment is considered solved when the agent receives a reward of +13 over 100 consecutive episodes. A reward of +1 is received whenever the agent collects a yellow banana and -1 whenever the agent collects a blue banana.

There are four possible actions:

  1. forward
  2. backward
  3. turn left
  4. turn right

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. This information is used to determine the best actions.

Getting started

The following section was taken from Udacity's GitHub for its simple guide on how to get your local machine ready for reinforcement learning with Unity.

Dependencies

To set up your python environment to run the code in this repository, follow the instructions below.

  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. Follow the instructions in this repository to perform a minimal install of OpenAI gym.

    • Next, install the classic control environment group by following the instructions here.
    • Then, install the box2d environment group by following the instructions here.
  3. Clone the repository (if you haven't already!), 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 .
  1. Create an IPython kernel for the drlnd environment.
python -m ipykernel install --user --name drlnd --display-name "drlnd"
  1. Before running code in a notebook, change the kernel to match the drlnd environment by using the drop-down Kernel menu.

Instructions

To run this project on your local machine, clone this repository.

git clone https://github.com/smejak/Udacity-DeepRL-Nanodegree-P1-Navigation.git

Then, open the Navigation.ipynb file and follow the instructions to train your own agent.

About

My implementation of the first project from Udacity's Deep Reinforcement Learning Nanodegree course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published