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.
-
Option 1: Solve the First Version
- The task is episodic, and in order to solve the environment, our agent must get an average score of +30 over 100 consecutive episodes.
-
Option 2: Solve the Second Version
-
The barrier for solving the second version of the environment is slightly different, to take into account the presence of many agents. In particular, the agents must get an average score of +30 (over 100 consecutive episodes, and over all agents). Specifically,
- After each episode, we add up the rewards that each agent received (without discounting), to get a score for each agent. This yields 20 (potentially different) scores. We then take the average of these 20 scores.
- This yields an average score for each episode (where the average is over all 20 agents).
-
The environment is considered solved, when the average (over 100 episodes) of those average scores is at least +30.
-
Out implementation considers Option 1 The task is episodic, and in order to solve the environment, our agent must get an average score of +30 over 100 consecutive episodes
Watch this YouTube video to see how some researchers were able to train a similar task on a real robot! The accompanying research paper can be found here.
For this use case, we dont have to install Unity environment as it has already been built. please find the details specific to operating systems.
you would be requiring the following
-
Python 3.6 or above click here
-
Jupyter notebook/ lab
python3 -m pip install --upgrade pip
python3 -m pip install jupyter
jupyter notebook
- Pytorch click for installation
- Numpy & matplotlib
pip install numpy
pip install matplotlib
Open the Continuous Control python notebook (Continuous_Control.ipynb) and start running cell by cell or run all.
- Note: The Unity environment needs to be downloaded and in Continuous_Control.ipynb the path to load the environment needs to be changed accordingly.
