Skip to content

This project trains an agent to navigate and to collect bananas in a continuous square environment. The environment is based on the Unity Machine Learning Agents Toolkit

License

Notifications You must be signed in to change notification settings

alessandroleite/navigation-drl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Navigation RL

1. Introduction

This project trains an agent to navigate and to collect bananas in a continuous square environment. The environment is based on the Unity Machine Learning Agents Toolkit.

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 agent must collect as many as yellow bananas as possible while avoiding blue bananas.

The state space has 37 dimensions and contains the agent's velocity, along with ray-based perception of objects around 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.

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

Trained Agent

2. Getting Starting

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

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

  2. Place the unzip file in the env directory

3. Requirements

This project requires Python 3.6 and for the libraries check the requirements.txt file. In short, the required libraries are:

4. Approach

The proposed solution relies on Deep Q-learning (DQN) [1] and Double DQN (DDQN) [2] algorithms to solve the task.

DQN Score

DDQN Score

5. References

[1] V. Mnih, K. Kavukcuoglu, D. Silver, A. A. Rusu, J. Veness, M. G. Bellemare, A. Graves, M. Riedmiller, A. K. Fidjeland, G. Ostrovski, S. Petersen, C. Beat- tie, A. Sadik, I. Antonoglou, H. King, D. Kumaran, D. Wierstra, S. Legg, and D. Hassabis, "Human-level control through deep reinforcement learning,” Nature, vol. 518, no. 7540, pp. 529–533, Feb 2015.

[2] H. Van Hasselt, A. Guez, and D. Silver, "Deep reinforcement learning with double q-learning," in Thirtieth AAAI Conference on Artificial Intelligence, 2016.

About

This project trains an agent to navigate and to collect bananas in a continuous square environment. The environment is based on the Unity Machine Learning Agents Toolkit

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published