Skip to main content

Reinforcement Learning for Everyone.

Project description

RLForge Logo

RLForge

docs PyPI - License PyPI - Version PyPI - Python Version PyPI Downloads

RLForge is an open-source reinforcement learning library that makes it easy to experiment with RL algorithms, environments, and training workflows. It is designed to be lightweight, educational, and fully compatible with the Gymnasium ecosystem (formerly OpenAI Gym).

Lunar Lander DQN

Features

  • Educational algorithms: from simple multi-armed bandits and tabular methods (SARSA, Q-learning, Expected SARSA) to function approximation with linear models and MLPs.

  • Advanced deep RL agents: including DQN, REINFORCE, Actor-Critic, DDPG, TD3, SAC, and PPO (both discrete and continuous).

  • Custom environments — bandits, short corridor, maze variations, robotics-inspired tasks like Mecanum Car, and classic control problems such as Pendulum.

  • Gymnasium compatibility: seamlessly integrate RLForge agents with hundreds of standardized benchmark environments.

  • Visualization tools: built-in experiment runner and plotting utilities for learning curves, episode statistics, and trajectory tracking.

  • PyTorch integration: optional install enables neural-network-based agents:

    • DQNTorchAgent
    • DDPGAgent
    • TD3Agent
    • SACAgent
    • PPODiscrete
    • PPOContinuous

    These PyTorch agents also support vectorized environments, allowing parallel training across multiple instances for faster and more stable learning.

Installation

If you already have Python installed, you can install RLForge with:

pip install rlforge

This will download and install the latest stable release of rlforge available in the Python Package Index.

RLForge works with Python 3.10 or later. Installing with pip will automatically download all required dependencies if they are not already present.

Optional PyTorch Support

To enable PyTorch-based agents, install RLForge with the torch extra:

pip install rlforge[torch]

Or install all optional dependencies:

pip install rlforge[all]

Documentation

Full documentation, including tutorials and examples, is available on Read the Docs.

Explore the examples section to see RLForge in action, from simple bandit problems to advanced continuous control tasks.

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

rlforge-1.0.3.tar.gz (74.4 kB view details)

Uploaded Source

Built Distribution

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

rlforge-1.0.3-py3-none-any.whl (98.7 kB view details)

Uploaded Python 3

File details

Details for the file rlforge-1.0.3.tar.gz.

File metadata

  • Download URL: rlforge-1.0.3.tar.gz
  • Upload date:
  • Size: 74.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for rlforge-1.0.3.tar.gz
Algorithm Hash digest
SHA256 5d7d40232cab79504fe8754c59da3ba9ab3a954e7cb1fdb1570e5915db0c0618
MD5 31f1f8bf9bca160348267668103af0d5
BLAKE2b-256 c3b731b878c7defa90a1ac44331eb6fa67cfed25631fc9bcbdfedae264088099

See more details on using hashes here.

File details

Details for the file rlforge-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: rlforge-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 98.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for rlforge-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a2e915f293ae9e4bcbfe8af7670f38bace3d5f73c1e15ca52c7ea1076b17cec7
MD5 e03a293172998fefac2ed90e66b29918
BLAKE2b-256 c1169a5e88190c70e8e4f8eb9112c0202b2331c2e3af8fd5d4affca70fcb690a

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