Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
/ gym_trivial Public archive

A minimal implementation of an OpenAI Gym environment, which simulates an `AND` gate

License

Notifications You must be signed in to change notification settings

DerwenAI/gym_trivial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gym_trivial

A trivial implementation of an OpenAI Gym environment, to illustrate and explore the baseline operations.

Usage

Clone the repo and connect into its top level directory. Then run:

pip install -r requirements.txt
pip install -e gym-trivial

python example.py

If you want to use this environment to train a policy in RLlib the first install via:

pip install git+git://github.com/DerwenAI/gym_trivial.git#egg=pkg&subdirectory=gym-trivial

Then after launching Ray run:

from gym_trivial.envs.trivial_env import Trivial
from ray.tune.registry import register_env

register_env("trivial-v0", lambda config: Trivial())

Kudos

h/t:

About

A minimal implementation of an OpenAI Gym environment, which simulates an `AND` gate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages