March 2019
Intermediate to advanced
184 pages
4h 57m
English
Over 50 such games exist in Atari. They are now part of the Arcade Learning Environment (ALE), which is an object-oriented framework built on top of Atari. OpenAI's gym is used to invoke Atari games these days so that RL agents can be trained to play these games. For instance, you can import gym in Python and play them as follows.
The reset() function resets the game environment, and render() renders the screenshot of the game:
import gym env = gym.make('SpaceInvaders-v0') env.reset() env.render()
We will now code a DQN in TensorFlow and Python to train an agent on how to play Atari Breakout.
Read now
Unlock full access