alenax
A JAX wrapper for the Arcade Learning Environment, compatible with Gymnax.
Installation
pip install alenax
Requires Python >= 3.10.
Usage
import jax
from alenax import AtariEnv
env = AtariEnv("pong")
key = jax.random.PRNGKey(0)
obs, state = env.reset(key)
obs, state, reward, done, info = env.step(key, state, action)
All environment methods are JIT-compiled and support jax.vmap for batched execution.
Wrappers
from alenax import ClipReward, EpisodicLife, RecordEpisodeStatistics
env = AtariEnv("pong")
env = ClipReward(env) # Clip rewards to [-1, 1]
env = EpisodicLife(env) # Treat life loss as episode end
env = RecordEpisodeStatistics(env) # Track episode returns and lengths
Metadata
Release files for alenax 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| alenax-0.1.3.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| alenax-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / alenax-0.1.3.tar.gz
| Download URL | alenax-0.1.3.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61bbdfdd877530464f09705ace1b84308434f444db4307ed5bdba373dd2b4dda
|
|
BLAKE2b-256 checksum How to use checksums |
5f612862b03518989ccef85e5c853ea8bc72cd094762d68d94fcc0651d3a5373
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / alenax-0.1.3-py3-none-any.whl
| Download URL | alenax-0.1.3-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80914590537adad8f0c823799147dea6c57ae4bf2723b2859a661bb5045288d7
|
|
BLAKE2b-256 checksum How to use checksums |
4b2664b395d6cf820b2021a9d180721610e971d0a55bed35aae5c61dc5a56cde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|