/Navigation

DQN

Primary LanguageJupyter Notebook

Project 2: Navigation

Project link

https://github.com/KiritoZhang/Navigation

Project Details

For this project, I will work with the Reacher environment.( https://github.com/Unity-Technologies/ml-agents/blob/master/docs/Learning-Environment-Examples.md#reacher)

In this environment, a double-jointed arm can move to target locations. A reward of +0.1 is provided for each step that the agent's hand is in the goal location. Thus, the goal of your agent is to maintain its position at the target location for as many time steps as possible.

The observation space consists of 33 variables corresponding to position, rotation, velocity, and angular velocities of the arm. Each action is a vector with four numbers, corresponding to torque applicable to two joints. Every entry in the action vector should be a number between -1 and 1.

Solving the Environment

In this project , in order to solve the environment, the agent must get an average score of +13 over 100 consecutive episodes.

Getting Started

  1. Download the environment from one of the links below.
  1. Place the file in the DRLND GitHub repository, in the p1_Navigation/ folder, and unzip (or decompress) the file.

  2. Finally, you need to install some libraries via pip.

    • unityagents
    • collections
    • matplotlib
    • numpy
    • random
    • time
    • copy
    • os
    • torch

Instructions

I have solved the environmental problem in Navigation.ipynb, just need to run the code in order.