Catalog PyPI
PACKAGE EXPLORERView in registry

aiarena-gym

PyPI

Gym environment for training agents in the AI Arena game

fightinggamegymlearningmachinepythonreinforcement
Versions collected1
Direct dependencies1From release 0.0.4
Last observed21 Oct, 09:56 UTC

README

Version 0.0.4 documentation

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...

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.42 Jun 20221

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:56 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:fac344d2d88e48b7baa151df3bf0a4f533543d5341b806331bd91d3c8347b97f