A docker environment for RL in python 3 including the OpenAI Gym toolkit INcludes:
- Basics: NumPy, Pandas, Scipy, Jupyter, Matplotlib
- Deep Learning: Tensorflow, Keras
- Reinforcement Learning: Keras-RL, baselines, TensorForce
- Environments: AI Gym
- Others: ipywidgets, h5py
You can directly pull the built image from Docker Hub by running
docker pull jaimeps/rl-gym
The virtual frame buffer allows the video from the gym environments to be rendered on jupyter notebooks. Simple example with Breakout:
import gym
from IPython import display
import matplotlib.pyplot as plt
%matplotlib inline
env = gym.make('Breakout-v0')
env.reset()
for _ in range(1000):
plt.imshow(env.render(mode='rgb_array'))
display.clear_output(wait=True)
display.display(plt.gcf())
env.step(env.action_space.sample())