WARNING: Rljax is currently in a beta version and being actively improved. Any contributions are welcome :)
RL Algorithms in JAX
Rljax is a collection of RL algorithms written in JAX.
Setup
You can install dependencies simply by executing the following. To use GPUs, nvidia-driver and CUDA must be installed.
pip install --upgrade https://storage.googleapis.com/jax-releases/`nvcc -V | sed -En "s/.* release ([0-9]*)\.([0-9]*),.*/cuda\1\2/p"`/jaxlib-0.1.55-`python3 -V | sed -En "s/Python ([0-9]*)\.([0-9]*).*/cp\1\2/p"`-none-manylinux2010_x86_64.whl jax
pip install -e .
If you don't have a GPU, please executing the following instead.
pip install --upgrade jaxlib jax
pip install -e .
If you want to use a MuJoCo physics engine, please install mujoco-py.
Algorithms
Currently, following algorithms have been implemented.
- Proximal Policy Optimization(PPO)
- Deep Deterministic Policy Gradient(DDPG)
- Twin Delayed DDPG(TD3)
- Soft Actor-Critic(SAC)
- Deep Q Network(DQN)
- N-step return
- Dueling Network
- Double Q-Learning
- Prioritized Experience Replay(PER)
- Soft Actor-Critic for Discrete Settings(SAC-Discrete)
We plan to implement the following algorithms in the future.
- Quantile Regression DQN(QR-DQN)
- Implicit Quantile Network(IQN)
Below shows that our algorithms successfully learning the discrete action environment CartPole-v0 and the continuous action environment InvertedPendulum-v2.
Release files for rljax 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rljax-0.0.2.tar.gz | 15.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rljax-0.0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 62.0 kB
Release files / rljax-0.0.2.tar.gz
| Download URL | rljax-0.0.2.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0612f1b82e652fe603ef15e649faf7315e2b143008ddfa283b7394e4ccbb233a
|
|
BLAKE2b-256 checksum How to use checksums |
93079e1742195302204b9b5f942ccb6f13fc3d12e89d8561e3bf471e34fd90b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / rljax-0.0.2-py2.py3-none-any.whl
| Download URL | rljax-0.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 46.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e586b6a623c93c39549be98cfa7124edb814fe7bef7d0167f6ca0c70e64fe2e7
|
|
BLAKE2b-256 checksum How to use checksums |
900783bdf11ef1e0b9004a9bcccccb8157c82f9e93050b49172c0aed3a91e665
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|