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.10.tar.gz (45.1 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.10-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for torchrl_agents-0.3.10.tar.gz
Algorithm Hash digest
SHA256 7d7e7da458f1c8b992b2756c0050547264aaddd94cdac6b96c41f9c4cfa6811b
MD5 24354897395553f0be55646f2407a690
BLAKE2b-256 46616c4cf141dcc64dd2404a5c320262528f235ff8880f5e7edb504a76579304

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torchrl_agents-0.3.10-py3-none-any.whl
Algorithm Hash digest
SHA256 bd7c106e3d7c83dd6fb8c4605481a8158dcab7087bb773c6452ec9ba75074a48
MD5 d323b52f4f9d68a59d99370285165f08
BLAKE2b-256 f461e75d06d286190d25f1fd563ca41edda1cf1ce73e86527bf18548bbd763a8

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