Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lerax-0.0.5.tar.gz (71.1 kB view details)

Uploaded Source

Built Distribution

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

lerax-0.0.5-py3-none-any.whl (105.6 kB view details)

Uploaded Python 3

File details

Details for the file lerax-0.0.5.tar.gz.

File metadata

  • Download URL: lerax-0.0.5.tar.gz
  • Upload date:
  • Size: 71.1 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for lerax-0.0.5.tar.gz
Algorithm Hash digest
SHA256 5a548759f77b9ecab4c1b5068799f6dfedc655c46bdfe62a6151ada697f7c485
MD5 089eddc983e6930c65885454b462a8dc
BLAKE2b-256 aa607dae09beb40b100ddb4490b8a90f74a6e923db2c6a1db6a8b1b7b2f2d0d1

See more details on using hashes here.

File details

Details for the file lerax-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: lerax-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 105.6 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for lerax-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cfbb48c0d2a326c6bee86f1f8d0982ceb18c5ecfaea90de941b1879f128d31ff
MD5 d3fcceb0dc1fdcd6e58d288d06469968
BLAKE2b-256 d5ec0c40abb50e31a2791798e78dc4bc91ff92c06ba9504f4f6bfb1d070214d1

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