Skip to content

etri/GymProxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GymProxy

GymProxy is a tiny library for porting an external python-based simulation on OpenAI Gym environment.

It is designed for users who want to apply reinforcement learning (RL) in an existing python-based simulation.

GymProxy makes a target simulation environment inter-operate with OpenAI Gym through multi-threading.

Installation

As pre-requisite, you should have Python 3.7+ installed on your machine.

NumPy and OpenAI Gym libraries are also required.

Clone this repository on your machine and run:

$ cd ~/projects/gymproxy    # We assume that the repository is cloned to this directory
$ pip install .

If you use Anaconda, you can install GymProxy by the followings:

$ conda activate my_env     # We assume that 'my_env' is your working environment 
$ conda develop ~/projects/gymproxy    

Usage Examples

We present three gym-type environments as usage examples of GymProxy:

  • CarRental
  • GamblersProblem
  • AccessControlQueue

Each of the above environments simulates example 4.2 (Jack's car rental), 4.3 (gambler's problem), and 10.2 (access-control queuing task), respectively, described in this book:

R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.

Acknowledgement

This work was supported by the Institute of Information and Communications Technology Planning and Evaluation (IITP) and funded by the Korea government (MSIT) under Grant No. 2017-0-00045, Hyper-Connected Intelligent Infrastructure Technology Development.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages