Skip to main content

Lerax: Fully JITable reinforcement learning with Jax.

Lerax is a reinforcement learning library built on top of Jax, designed to facilitate the creation, training, and evaluation of RL agents in a fully JITable manner. It provides modular components for building custom environments, policies, and training algorithms.

Built on top of Jax, Equinox, and Diffrax.

Installation

pip install lerax

Training Example

from jax import random as jr

from lerax.algorithm import PPO
from lerax.env import CartPole
from lerax.policy import MLPActorCriticPolicy

env = CartPole()
policy = MLPActorCriticPolicy(env=env, key=jr.key(0))
algo = PPO()

policy = algo.learn(env, policy, total_timesteps=2**16, key=jr.key(1))

Documentation

Check out: lerax.tedpinkerton.ca

Metadata

Release files for lerax 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lerax 0.0.5
File Size Uploaded Provenance Actions
lerax-0.0.5.tar.gz 71.1 kB Without provenance Details for lerax-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lerax 0.0.5
File Interpreter ABI Platform Actions
lerax-0.0.5-py3-none-any.whl Python 3 none any Details for lerax-0.0.5-py3-none-any.whl

Total release size: 176.6 kB

Release files / lerax-0.0.5.tar.gz

Download URL lerax-0.0.5.tar.gz
Size 71.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5a548759f77b9ecab4c1b5068799f6dfedc655c46bdfe62a6151ada697f7c485
BLAKE2b-256 checksum
How to use checksums
aa607dae09beb40b100ddb4490b8a90f74a6e923db2c6a1db6a8b1b7b2f2d0d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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":true}

Release files / lerax-0.0.5-py3-none-any.whl

Download URL lerax-0.0.5-py3-none-any.whl
Size 105.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfbb48c0d2a326c6bee86f1f8d0982ceb18c5ecfaea90de941b1879f128d31ff
BLAKE2b-256 checksum
How to use checksums
d5ec0c40abb50e31a2791798e78dc4bc91ff92c06ba9504f4f6bfb1d070214d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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":true}

Security for lerax 0.0.5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page