For this project, i trained an agent to navigate (and collect bananas!) in a large, square world. 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 the agent is to collect as many 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 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.
Solution : The agent should get more than 13.0 for 100 consecutive episodes.
For this project, you will not need to install Unity - this is because we have already built the environment for you, and you can download it from one of the links below. You need only select the environment that matches your operating system:
Linux: click here Mac OSX: click here Windows (32-bit): click here Windows (64-bit): click here
Then, place the file in the folder in the Banana-Navigation GitHub repository, and unzip (or decompress) the file.
- Download the project materials from my GitHub repository. You can download the repository with
git clone https://github.com/vickipedia6/Banana-Navigator.git
-
Download anaconda or miniconda based on the instructions in the Anaconda documentation.
-
Create a new conda environment:
conda create --name deep-learning python=3
- Enter your new environment:
- Mac/Linux: >>
source activate deep-learning - Windows: >>
activate deep-learning
- Ensure you have numpy, matplotlib, pandas, and jupyter notebook installed by doing the following:
conda install numpy matplotlib pandas jupyter notebook
- Run the following to open up the notebook server:
jupyter notebook navigation.ipynb
- Execute all the cells in the code
- The agent achieved 13.04 within 384 episodes which is pretty quick as the expected outstanding episodes was 1800.
- Python 3
This project is licensed under the MIT License - see the LICENSE.md file for details
- The data comes from the Udacity.


