Skip to main content

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


Download files

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

Source Distribution

torchrl_agents-0.3.12.tar.gz (45.2 kB view details)

Uploaded Source

Built Distribution

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

torchrl_agents-0.3.12-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file torchrl_agents-0.3.12.tar.gz.

File metadata

  • Download URL: torchrl_agents-0.3.12.tar.gz
  • Upload date:
  • Size: 45.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.8

File hashes

Hashes for torchrl_agents-0.3.12.tar.gz
Algorithm Hash digest
SHA256 18d7526ae161c04211b3019c22d44584d1df6a1e1f77a4407c8ea42fa411b65b
MD5 0f9eca084ac35c5627adcdd19ab6cf57
BLAKE2b-256 1b4ce52750dcb587780feb38f58a8827d9a9b496bfac65e08b8d5d8caf44a996

See more details on using hashes here.

File details

Details for the file torchrl_agents-0.3.12-py3-none-any.whl.

File metadata

File hashes

Hashes for torchrl_agents-0.3.12-py3-none-any.whl
Algorithm Hash digest
SHA256 c5ad0371aa33bc8c7de42313b4cb92cf324286ccc7a029904d83aad564e01aa4
MD5 7f0029ff5e17b73cfed09284a1b9524f
BLAKE2b-256 93d70e1acca7db305ba61c6fce83b7d734338a03ba0e82f83d2d23b5079ef2dd

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