forked from openai/gym
-
Notifications
You must be signed in to change notification settings - Fork 1
Environments
Jesse Cooper edited this page Aug 24, 2016
·
1 revision
An environment is a problem with a minimal interface that an agent can interact with. The environments in the OpenAI Gym are designed in order to allow objective testing and bench-marking of an agents abilities.
- Write your environment in an existing collection or a new collection. All collections are subfolders of `/gym/envs'.
- Import your environment into the
__init__.py
file of the collection. This file will be located at/gym/envs/my_collection/__init__.py
. Addfrom gym.envs.my_collection.my_awesome_env import MyEnv
to this file. - Register your env in
/gym/envs/__init__.py
:
register(
id='MyEnv-v0',
entry_point='gym.envs.my_collection:MyEnv',
)
- Add your environment to the scoreboard in
/gym/scoreboard/__init__.py
:
add_task(
id='MyEnv-v0',
summary="Super cool environment",
group='my_collection',
contributor='mygithubhandle',
)
gym_pull allows you to install and share custom environments directly from a GitHub repository, as well as providing a simple way to run modified versions of existing gym environments
Current custom environment repos include: