Here, we will plot the performance of our DQN algorithm on Breakout using the performance.txt file that we wrote in the code previously. We will use matplotlib to plot two graphs as follows:
- Number of time steps per episode versus episode number
- Total episode reward versus time step number
The steps involved in this are as follows:
- Plot number of time steps versus episode number for Atari Breakout using DQN: First, we plot the number of time steps the agent lasted per episode of training in the following diagram. As we can see, after about 10,000 episodes, the agent has learned to survive for a peak of 2,000 time steps per episode (blue curve). We also plot the exponentially weighted ...