Skip to main content

OpenAI Gym environment of Traffic Junction with continuous action space

Project description

tjc-gym

Traffic Juntion Continuous (tjc) is a continuous version of the environment Traffic Junction defined in Learning Multiagent Communication with Backpropagation. The environment is based on OpenAI Gym and has an continouos observation and action space where the original is discrete.

Installation

Through PyPi:

pip install tjc-gym

Or directly by cloning repo:

git clone https://github.com/jakobdybdahl/tjc-gym.git
cd tjc-gym
pip install -e .

Usage

import gym

env = gym.make('tjc_gym:TrafficJunctionContinuous6-v0')
done = [False] * env.n_agents
score = 0

obs = env.reset()
while not all(done):
  env.render()
  actions = [acsp.sample() for ascp in env.action_space]
  obs_, rewards, done, info = env.step(actions)
  score += sum(rewards)

Reference

If you want to site our work, please see the citation file in the repo for details. Through GitHub it is possible to 'Cite this repository' and get a BibTeX reference - it can be found in the 'About' section of this repo.

Acknowledgement

This environment was developed by RasmusThorsen and jakobdybdahl to complement our master thesis at @ Aarhus University.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tjc-gym-0.0.2.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tjc_gym-0.0.2-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file tjc-gym-0.0.2.tar.gz.

File metadata

  • Download URL: tjc-gym-0.0.2.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for tjc-gym-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d8e7cf895ac09598e39acf5e8def4aa313a55a470c430cbb0b0b97f34104f365
MD5 ff21993725c2826da8381c0b9d91b274
BLAKE2b-256 9178ac220c17220e41c59f263ce9c8b45047a45a8b305ee1ec00fc48f117c3f8

See more details on using hashes here.

File details

Details for the file tjc_gym-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: tjc_gym-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for tjc_gym-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b9f97012b75e17a1ba65d120e62afcdbd8dc27d86d8c4616f7919e3aed87e36
MD5 08076621d03fc8466b6edfb76a5b5ead
BLAKE2b-256 ce3b1ca1d9d26f62a83c2514c82a77e6f9aec7623f3e3a1986c0618f2bb3c53b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page