openai-gym

Display OpenAI gym in Jupyter notebook only

戏子无情 提交于 2019-11-29 07:05:06
I want to play with the OpenAI gyms in a notebook, with the gym being rendered inline. Here's a basic example: import matplotlib.pyplot as plt import gym from IPython import display %matplotlib inline env = gym.make('CartPole-v0') env.reset() for i in range(25): plt.imshow(env.render(mode='rgb_array')) display.display(plt.gcf()) display.clear_output(wait=True) env.step(env.action_space.sample()) # take a random action env.close() This works, and I get see the gym in the notebook: But! it also opens an interactive window that shows precisely the same thing. I don't want this window to be open:

OpenAI Gym Atari on Windows

时光总嘲笑我的痴心妄想 提交于 2019-11-28 15:48:25
I'm having issues installing OpenAI Gym Atari environment on Windows 10. I have successfully installed and used OpenAI Gym already on the same system. It keeps tripping up when trying to run a makefile. I am running the command pip install gym[atari] Here is the error: and here is what I currently have on my system... cmake and make are both clearly installed. A while ago I have created a fork with Windows support (devs of original repository do not merge or even comment PRs and issues). It does not require neither MSYS/Cygwin nor CMake or Zlib. To simply install atari-py wheels (binaries) use

Display OpenAI gym in Jupyter notebook only

可紊 提交于 2019-11-28 00:09:59
问题 I want to play with the OpenAI gyms in a notebook, with the gym being rendered inline. Here's a basic example: import matplotlib.pyplot as plt import gym from IPython import display %matplotlib inline env = gym.make('CartPole-v0') env.reset() for i in range(25): plt.imshow(env.render(mode='rgb_array')) display.display(plt.gcf()) display.clear_output(wait=True) env.step(env.action_space.sample()) # take a random action env.close() This works, and I get see the gym in the notebook: But! it also

OpenAI Gym Atari on Windows

烂漫一生 提交于 2019-11-27 09:35:32
问题 I'm having issues installing OpenAI Gym Atari environment on Windows 10. I have successfully installed and used OpenAI Gym already on the same system. It keeps tripping up when trying to run a makefile. I am running the command pip install gym[atari] Here is the error: and here is what I currently have on my system... cmake and make are both clearly installed. 回答1: A while ago I have created a fork with Windows support (devs of original repository do not merge or even comment PRs and issues).

How to create a new gym environment in OpenAI?

亡梦爱人 提交于 2019-11-27 02:51:17
I have an assignment to make an AI Agent that will learn play a video game using ML. I want to create a new environment using OpenAI Gym because I don't want to use an existing environment. How can I create a new, custom, Environment? Also, is there any other way that I can start to develop making AI Agent to play an specific video game without the help of OpenAI Gym? Martin Thoma See my banana-gym for an extremely small environment. Create new environments See the main page of the repository: https://github.com/openai/gym/blob/master/docs/creating-environments.md The steps are: Create a new