Object-oriented RL agents based on torchrl.
Project description
TorchRL Agents
TorchRL Agents is a Python package that provides object-oriented reinforcement learning (RL) agents built on top of PyTorch and TorchRL.
Object-Oriented Design
At the core of this package is the Agent abstract base class, which defines a structured interface for RL agents. The Agent class provides a blueprint that other classes can subclass to implement specific RL algorithms. This design ensures consistency and reusability across different agents.
Key Features of the Agent Class:
- Abstract Methods: Enforces the implementation of essential functionalities, such as processing batches and defining policies.
- Serialization: Supports saving and loading agent configurations and weights, enabling easy training and deployment.
- Modularity: Allows for easy extension and customization by subclassing.
By subclassing the Agent class, you can implement various RL algorithms while adhering to a consistent structure.
Installation
pip install torchrl-agents
Examples
See torchrl-examples for some examples where agents are trained on benchmark environments.
License
This project is licensed under the MIT License. See the LICENSE file for details.
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 torchrl_agents-0.4.12.tar.gz.
File metadata
- Download URL: torchrl_agents-0.4.12.tar.gz
- Upload date:
- Size: 45.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d08dfa4968cd424d371430eeec091955ba2f48f15749da78480961254254da14
|
|
| MD5 |
0aeb3f2663110e3a3f930d86adfeac40
|
|
| BLAKE2b-256 |
0345c85a60457f45d291d95c19d5c1513acf2711f08db64615ed56a8b27d9ced
|
File details
Details for the file torchrl_agents-0.4.12-py3-none-any.whl.
File metadata
- Download URL: torchrl_agents-0.4.12-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bbed4aa21a73b1f352e2cf95d7a8e78f0e441fb287661e83bb6c862a2e0a282
|
|
| MD5 |
a852d4f514b1cdb30960c2301692675e
|
|
| BLAKE2b-256 |
f1063288c4542ece5748e8521c301690700d8d04e4f1000a53ec930a71e69692
|