ludax-agents
Pretrained AlphaZero agents for games in the Ludax board game framework.
Installation
pip install ludax-agents
Or install together with Ludax and its GUI:
pip install 'ludax[gui,agents]'
What's included
Each bundled agent is a ResNet trained via self-play using Gumbel MuZero search. At inference time the agent runs 256 MCTS simulations per move.
| Game | Checkpoint |
|---|---|
| Reversi (Othello) | reversi.ckpt |
Usage
The agents integrate automatically with the Ludax GUI — just install this package and an alphazero option will appear in the policy dropdowns for any supported game.
For programmatic use:
from ludax import LudaxEnvironment
from ludax.games import reversi
from ludax_agents import az_checkpoint_policy, get_checkpoint_path
env = LudaxEnvironment(game_str=reversi)
policy = az_checkpoint_policy(env, get_checkpoint_path("reversi"))
# policy(state_b, rng_key) -> action_b
Adding your own checkpoints
Checkpoints are produced by the AlphaZero trainer in examples/03-alpha-zero/. Copy the best iteration file and rename it <game_id>.ckpt (where game_id matches a key in ludax.games.__all__), then place it in src/ludax_agents/checkpoints/ and rebuild the package.
Links
Metadata
Release files for ludax-agents 1.0.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 |
|---|---|---|---|---|
| ludax_agents-1.0.0.tar.gz | 3.4 MB | Without provenance | Details for ludax_agents-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ludax_agents-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for ludax_agents-1.0.0-py3-none-any.whl |
Total release size: 6.9 MB
Release files / ludax_agents-1.0.0.tar.gz
| Download URL | ludax_agents-1.0.0.tar.gz |
|---|---|
| Size | 3.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
612884b50f13c493ef2bc293f9892c2a4b2a1abf3306d05d25ef8c5d27ef27e1
|
|
BLAKE2b-256 checksum How to use checksums |
476c139498b2bc8c60dc4e6a2e36baa90ea9ad3fefa6e85f02bd18c093257d96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / ludax_agents-1.0.0-py3-none-any.whl
| Download URL | ludax_agents-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d60739c965497bb55bce54446bc7e3260fc48d011414867f3e48e4dab97ce9e9
|
|
BLAKE2b-256 checksum How to use checksums |
092defa3e212efe3c38f73abdbd923d94f73d892e96d73292fcbbf7763e66fd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for ludax-agents 1.0.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.