ObjectRL
ObjectRL is a deep reinforcement learning library designed for research and rapid prototyping. It focuses on deep actor-critic algorithms for continuous control tasks such as those in the MuJoCo environment suite, while providing a flexible object-oriented architecture that supports future extensions to value-based and discrete-action methods.
Features
- Object-oriented design for easy experimentation
- Implements popular deep RL algorithms for continuous control
- Includes experimental implementations of Bayesian and value-based methods
- Supports easy configuration via CLI and YAML files
- Rich examples and tutorials for customization and advanced use cases
Supported Algorithms
- DDPG (Deep Deterministic Policy Gradient)
- TD3 (Twin Delayed DDPG)
- SAC (Soft Actor-Critic)
- PPO (Proximal Policy Optimization)
- REDQ (Randomized Ensemble Double Q-Learning)
- DRND (Distributional Random Network Distillation)
- OAC (Optimistic Actor-Critic)
- PBAC (PAC-Bayesian Actor-Critic)
- BNN-SAC (Bayesian Neural Network SAC) — experimental, in examples
- DQN (Deep Q-Network) — experimental, in examples
Installation
Create Environment
conda create -n objectrl python=3.12 -y
conda activate objectrl
Using PyPI
pip install objectrl
From Source
git clone https://github.com/adinlab/objectrl.git
cd objectrl
pip install -e .
Optional Dependencies
To enable additional features such as documentation generation:
pip install objectrl[docs]
Quick Start Guide
Run your first experiment using Soft Actor-Critic (SAC) on the default cheetah environment:
If installed from PyPI:
python -m objectrl.main --model.name sac
If running from a cloned repo:
python objectrl/main.py --model.name sac
Other examples will assume running from a cloned repo.
Change Algorithm and Environment
Run DDPG on the hopper environment:
python objectrl/main.py --model.name ddpg --env.name hopper
Customize Training Parameters
Train SAC for 100,000 steps and evaluate every 5 episodes:
python objectrl/main.py --model.name sac --env.name hopper --training.max_steps 100000 --training.eval_episodes 5
Use YAML Configuration Files
For more complex or reproducible setups, create YAML config files in objectrl/config/model_yamls/ and specify them at runtime:
python objectrl/main.py --config objectrl/config/model_yamls/ppo.yaml
Example ppo.yaml:
model:
name: ppo
training:
warmup_steps: 0
learn_frequency: 2048
batch_size: 64
n_epochs: 10
Need Help?
If you encounter common issues or errors during installation or usage, please see the Issues guide for solutions and tips.
For other questions or to report bugs, visit our GitHub Issues page.
Documentation
Explore detailed documentation, tutorials, and API references at: https://objectrl.readthedocs.io
Citation
If you use ObjectRL in your research, please cite:
@article{baykal2025objectrl,
title={ObjectRL: An Object-Oriented Reinforcement Learning Codebase},
author={Baykal, Gulcin and Akg{\"u}l, Abdullah and Haussmann, Manuel and Tasdighi, Bahareh and Werge, Nicklas and Wu Yi-Shan and Kandemir, Melih},
year={2025},
journal={arXiv preprint arXiv:2507.03487}
}
Metadata
Release files for objectrl 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| objectrl-0.2.1.tar.gz | 87.4 kB | Without provenance | Details for objectrl-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| objectrl-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for objectrl-0.2.1-py3-none-any.whl |
Total release size: 225.0 kB
Release files / objectrl-0.2.1.tar.gz
| Download URL | objectrl-0.2.1.tar.gz |
|---|---|
| Size | 87.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0b75871cba16f32e6f14f0bfe2b04cbfe098bf6ddd1854d0f473ac82cba7f2a
|
|
BLAKE2b-256 checksum How to use checksums |
cbc6f7c9b2ccf8235753e4bec04c9b4e3b826fbe8e6414f5bea9b3632099ac1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / objectrl-0.2.1-py3-none-any.whl
| Download URL | objectrl-0.2.1-py3-none-any.whl |
|---|---|
| Size | 137.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed4378aa982f6ae6850a4599836ac625c5d15851e93e3d388dc994d35f48ef80
|
|
BLAKE2b-256 checksum How to use checksums |
d34aa98f38f660243b10356d6b7cbd8d55eb7db770f9f03efe10335ac05c3c53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Security for objectrl 0.2.1
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.