Playing Atari games using DQN
The Atari 2600 is a popular video game console from a game company called Atari. The Atari game console provides several popular games, such as Pong, Space Invaders, Ms. Pac-Man, Breakout, Centipede, and many more. In this section, we will learn how to build a DQN for playing the Atari games. First, let's explore the architecture of the DQN for playing the Atari games.
Architecture of the DQN
In the Atari environment, the image of the game screen is the state of the environment. So, we just feed the image of the game screen as input to the DQN and it returns the Q values of all the actions in the state. Since we are dealing with images, instead of using a vanilla deep neural network for approximating the Q value, we can use a convolutional neural network (CNN) since it is very effective for handling images.
Thus, now our DQN is a CNN. We feed the image of the game screen (the game state) as input to the CNN, and it outputs the Q...