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.
Metadata
Release files for torchrl-agents 0.4.12
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 |
|---|---|---|---|---|
| torchrl_agents-0.4.12.tar.gz | 45.6 kB | Without provenance | Details for torchrl_agents-0.4.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| torchrl_agents-0.4.12-py3-none-any.whl | Python 3 | none | any | Details for torchrl_agents-0.4.12-py3-none-any.whl |
Total release size: 59.4 kB
Release files / torchrl_agents-0.4.12.tar.gz
| Download URL | torchrl_agents-0.4.12.tar.gz |
|---|---|
| Size | 45.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d08dfa4968cd424d371430eeec091955ba2f48f15749da78480961254254da14
|
|
BLAKE2b-256 checksum How to use checksums |
0345c85a60457f45d291d95c19d5c1513acf2711f08db64615ed56a8b27d9ced
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.8
|
Release files / torchrl_agents-0.4.12-py3-none-any.whl
| Download URL | torchrl_agents-0.4.12-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4bbed4aa21a73b1f352e2cf95d7a8e78f0e441fb287661e83bb6c862a2e0a282
|
|
BLAKE2b-256 checksum How to use checksums |
f1063288c4542ece5748e8521c301690700d8d04e4f1000a53ec930a71e69692
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.8
|
Security for torchrl-agents 0.4.12
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.