Skip to content

Deep Q-Learning agent for final project of Udacity Nanodegree Program.

License

Notifications You must be signed in to change notification settings

2Fast2/Deep_Q_Learning_Navigation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deep Q-Learning Navigation

Deep Q-Learning agent for final project of Udacity Nanodegree Program.

Project Details

This project consist in train an agent and navigate in a large but finite square to pick yellow bananas, while avoiding blue bananas.

Goal

A reward of +1 is provided for collecting a yellow banana, and a reward of -1 is provided for collecting a blue banana. Thus, the goal of your agent is to collect as many yellow bananas as possible while avoiding blue bananas.

Like the task is episodic, and in order to solve the environment, the agent must get an average score of +13 over 100 consecutive episodes.

Environment

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, corresponding to:

  • 0 - move forward.
  • 1 - move backward.
  • 2 - turn left.
  • 3 - turn right.
Unity brain name: BananaBrain
        Number of Visual Observations (per agent): 0
        Vector Observation space type: continuous
        Vector Observation space size (per agent): 37
        Number of stacked Vector Observation: 1
        Vector Action space type: discrete
        Vector Action space size (per agent): 4
        Vector Action descriptions: , , , 

Getting Started

  • Step 1, ensure the fulfilment of environment requirements.

    • Python 3.6 or higher.
    • If you wnat to create an environment to isolate the environment, you can install miniconda3.
    • Install git to clone the repository. (This is an optional step)
  • Step 2, download the Unity Environment.

    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.

  • Step 3, clone or download the code.

    You can clone the code from the git repository

    git clone https://github.com/2Fast2/Deep_Q_Learning_Navigation.git
    

    or download as a zip file.

  • Step 4, install necessary dependencies.

    Install other necessary libraries from the requirements.txt file.

    pip install -r requirements.txt
    

Instructions

Once you have all requirements satisfies, open Navigation.ipynb (located in the p1_navigation/ folder in the DRLND GitHub repository) jupyter notebook and run the cells to train the agent.

About

Deep Q-Learning agent for final project of Udacity Nanodegree Program.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages