Provides a HTTP API for OpenAI Gym
Find a file
2020-03-29 14:36:09 -04:00
examples Merge branch 'master' of https://github.com/Brandon-Rozek/GymHTTP 2019-11-02 10:32:00 -04:00
.gitignore Initial Commit 2019-06-05 21:56:01 -04:00
gymclient.py Modified preprocessing 2019-11-02 10:25:47 -04:00
gymserver.py Modified preprocessing 2019-11-02 10:25:47 -04:00
LICENSE Create LICENSE 2020-03-29 14:36:09 -04:00
README.md Updated README with usage instructions 2019-06-05 21:57:51 -04:00
start_servers.sh Added script to start webservers 2019-11-02 10:27:58 -04:00

HTTP interface for OpenAI Gym

This library adds a HTTP interface for the OpenAI Gym Project. Hopefully you will be able to use it in your reinforcement learning projects without noticing!

Why would I want to do this? If you want to decouple the processing of the environment from the training of your models this might be beneficial.

To start the webserver

export FLASK_APP=gymserver.py
flask run

In your main application

from gymclient import Environment
env = Environment("127.0.0.1", 5000)