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.
Metadata
Release files for tjc-gym 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tjc-gym-0.1.0.tar.gz | 10.7 kB | Without provenance | Details for tjc-gym-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tjc_gym-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for tjc_gym-0.1.0-py3-none-any.whl |
Total release size: 21.3 kB
Release files / tjc-gym-0.1.0.tar.gz
| Download URL | tjc-gym-0.1.0.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39b9429efa20e28c361efff14202ab72089bdba941d7d671d2440b53dc4dba52
|
|
BLAKE2b-256 checksum How to use checksums |
2361d3a68278b3fe1acc9ac8e7264b1a2a8e43e544648513c8ae9a7875e3f176
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / tjc_gym-0.1.0-py3-none-any.whl
| Download URL | tjc_gym-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00f57497ea2f49f3470582942d12816e1183c05352c25be7bd16dcf585c0fa9a
|
|
BLAKE2b-256 checksum How to use checksums |
359e4f879e85255e62ac78444780df80cd4345843d51a098b52f5af9d5b52cfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for tjc-gym 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.