close
address. Gaston Geenslaan 11 B4, 3001 Leuven
s.
All Insights

Messing around with OpenAI Gym

OpenAI Gym is a cool platform for anybody involved with reinforcement learning algorithms

Written by
Deevid De Meyer
Co-Founder Brainjar

So while I was looking around for interesting Python-based AI projects I came across OpenAI Gym, backed by mister Elon Musk himself. This application aims to provide the ultimate sandbox environment for AI-research, but at the same succeeds in providing the ultimate geek toy for AI-researchers. Let me show you why.

OpenAI Gym

First of all it might be useful to explain what OpenAI Gym actually does: OpenAI Gym aims to provide an easy environment to develop and test reinforcement learning algorithms. To be clear, OpenAI Gym doesn’t power any algorithms itself, leaving it up to more specialised packages like TensorFlow or Theano.

OpenAI Gym environments

So what makes this the ultimate geek toy for AI-researchers? Well, this is because of the many environments OpenAI Gym provides, one of them being the ‘atari’ environment. That’s right, you can test the performance of your reinforcement learning algorithms on a variety of different atari games and what’s more, you can automatically upload the performance of your algorithms and compare them to other people’s approaches.

OpenAI Pacman
Learning performance

To save myself a few weeks of research and computing time, I decided to download one of the top performing algorithms and see how it performs. The only input the algorithm gets is the raw RGB values of the screen pixels and the current score. Additionally, the algorithm is also made aware of all the possible actions within the game thanks to the OpenAI Gym framework.

On the right you can see that the final algorithm is the result of about eighty thousand iterations. The result, seen on the left, is quite impressive: notice for example how miss pacman waits in the top-right corner until a ghost arrives, which she promptly consumes using the power pellet.

Conclusion

To conclude, OpenAI Gym is a cool platform for anybody involved with reinforcement learning algorithms. The platform will allow you to test your algorithms in a variety of different environments without having to go through the hassle of making the right inputs available to your algorithm. It has been proven many times before that open-sourcing encourages innovation, and we can’t wait to see what kind of influence OpenAI will have in the future!

Written by
Deevid De Meyer
Co-Founder Brainjar

Subscribe to our newsletter

Raccoons NV (Craftworkz NV, Oswald AI NV, Brainjar NV, Wheelhouse NV, TPO Agency NV and Edgise NV are all part of Raccoons) is committed to protecting and respecting your privacy, and we’ll only use your personal information to administer your account and to provide the products and services you requested from us. From time to time, we would like to contact you about our products and services, as well as other content that may be of interest to you. If you consent to us contacting you for this purpose, please tick below:

By submitting this form, you agree to our privacy policy.

In order to provide you the content requested, we need to store and process your personal data. If you consent to us storing your personal data for this purpose, please tick the checkbox below.

More blog articles that can inspire you

03/08/2021

How to cheat on your internship with mouth animation

While looking for a possible internship, one immediately got my attention. Building a ‘face animation tool’. I couldn’t ...

what we do

Socials

address. Gaston Geenslaan 11 B4, 3001 Leuven