Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alenax-0.1.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

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

Hashes for alenax-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a23e77c13d5b4ef4f9a79caa10cb9d038ac8d466730ff6a257ca806420b0617f
MD5 fdb2353069583eb140bc9a2d0fb0e2d8
BLAKE2b-256 e6daabf715af70a5d7b98b95da970a319f9987f4ab04c6e78bc48dcfdec0d371

See more details on using hashes here.

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

Hashes for alenax-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 118495b62082d0bb41f19ef7df95e88d5b8ae7e1ac0f30ebe2894511e50d571c
MD5 0e0f2d06b844aad0465b9e48f906f8de
BLAKE2b-256 79dbae700c4d5f3489cc0c221add6099e418ecee370e043b1f5e79922aadbd02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page