Add your description here
Project description
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
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
alenax-0.1.2.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alenax-0.1.2.tar.gz.
File metadata
- Download URL: alenax-0.1.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a23e77c13d5b4ef4f9a79caa10cb9d038ac8d466730ff6a257ca806420b0617f
|
|
| MD5 |
fdb2353069583eb140bc9a2d0fb0e2d8
|
|
| BLAKE2b-256 |
e6daabf715af70a5d7b98b95da970a319f9987f4ab04c6e78bc48dcfdec0d371
|
File details
Details for the file alenax-0.1.2-py3-none-any.whl.
File metadata
- Download URL: alenax-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
118495b62082d0bb41f19ef7df95e88d5b8ae7e1ac0f30ebe2894511e50d571c
|
|
| MD5 |
0e0f2d06b844aad0465b9e48f906f8de
|
|
| BLAKE2b-256 |
79dbae700c4d5f3489cc0c221add6099e418ecee370e043b1f5e79922aadbd02
|