Gym environment for training agents in the AI Arena game
Project description
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 staten_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...
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
Built Distribution
File details
Details for the file aiarena_gym-0.0.4.tar.gz
.
File metadata
- Download URL: aiarena_gym-0.0.4.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73a121e5448f6d90da639676d73f82cf768d05609339eabb0261964bee9e2b5c |
|
MD5 | daa48c48083097e4493764fa095ffe56 |
|
BLAKE2b-256 | eefd320c310fcc629c52d0d7f1707c405ea9c284c88c2a0b292b23aae2936358 |
File details
Details for the file aiarena_gym-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: aiarena_gym-0.0.4-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 779324e1fc57327ee42be8305ea0bafc5aecc4c38df605fc2161cce473a52837 |
|
MD5 | 41155faaf71b3b9b221cd1aa7327abd1 |
|
BLAKE2b-256 | e611dc000c77fd078b4ca83f91761e6e016e2d104334018fe4eee9e19dab1cea |