Deep Reinforcement Learning with JAX and Equinox.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 lerax-0.0.4.tar.gz.
File metadata
- Download URL: lerax-0.0.4.tar.gz
- Upload date:
- Size: 77.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
560eded6680554efb413ab8b7ea8102ac6ceba4526f784310a7a22d06ab43896
|
|
| MD5 |
96065c54d1014616ca133983e4e81bf3
|
|
| BLAKE2b-256 |
f1f3c2b027818518f494767c58a2950a85702799b9112081537d64b54b30c000
|
File details
Details for the file lerax-0.0.4-py3-none-any.whl.
File metadata
- Download URL: lerax-0.0.4-py3-none-any.whl
- Upload date:
- Size: 122.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27cf0ed24d441ad78f035e2df3a140bbcde97d485309081b01908ec4cc8c7dcd
|
|
| MD5 |
37ea4f5510fdeb1a545d37fc13b7da24
|
|
| BLAKE2b-256 |
9c6ba2ac5fceffbcbf9188a7d43296888911bed2003d922388f376b56f32e59c
|