Skip to main content

AI Arena Python Environment

To get started with our python environment you can run the training.py file.

This file shows you how to do a few things in our environment:

  • Initialize a new model
  • Import a pretrained model
  • Set up the game environment
  • Run training with one-sided and selfplay reinforcement learning
  • Save your model in the format that works with our researcher platform

We have set you up with a starter model in the starter_model directory. This is a simple Policy Gradient that implements a version of the REINFORCE algorithm. We encourage you to replace this with your own models!

Additionally, we set up some basic training loops in the simulation_methods.py file. Feel free to change these up and make them your own!

NOTE: There are two variables in the training.py file which you should not change because our game requires these to be constant:

  • n_features: This is the dimensionality of the state
  • n_actions: This is the dimensionality of the policy

Lastly, we have included the rules-based agent agent_sihing.py (the researcher platform benchmark) in case you want to train specifically against it. But be careful about overfitting because we will introduce more benchmarks which require generalization...

Metadata

Release files for aiarena-gym 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiarena-gym 0.0.4
File Size Uploaded Provenance
aiarena_gym-0.0.4.tar.gz 8.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aiarena-gym 0.0.4
File Interpreter ABI Platform
aiarena_gym-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 18.5 kB

Release files / aiarena_gym-0.0.4.tar.gz

Download URL aiarena_gym-0.0.4.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
73a121e5448f6d90da639676d73f82cf768d05609339eabb0261964bee9e2b5c
BLAKE2b-256 checksum
How to use checksums
eefd320c310fcc629c52d0d7f1707c405ea9c284c88c2a0b292b23aae2936358
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.23.0 requests-toolbelt/0.9.1 urllib3/1.25.8 tqdm/4.50.2 importlib-metadata/0.18 keyring/21.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.12

Release files / aiarena_gym-0.0.4-py3-none-any.whl

Download URL aiarena_gym-0.0.4-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
779324e1fc57327ee42be8305ea0bafc5aecc4c38df605fc2161cce473a52837
BLAKE2b-256 checksum
How to use checksums
e611dc000c77fd078b4ca83f91761e6e016e2d104334018fe4eee9e19dab1cea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.23.0 requests-toolbelt/0.9.1 urllib3/1.25.8 tqdm/4.50.2 importlib-metadata/0.18 keyring/21.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.12

Security for aiarena-gym 0.0.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page