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.1.0.tar.gz (74.6 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.1.0-py3-none-any.whl (98.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rlforge-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a7f1825f934d9c91f72b163b7a22578cbcca3f64a9a0867bc782ec957c4a66f1
MD5 3d97f7773059cec09e91df0fb8ea32d7
BLAKE2b-256 5d6d3805943c5a9b77c8bc7d2315fb20d3ffc556f0f466ab30ef6f6f9d54f65f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rlforge-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 98.9 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dcf9c2080282cd90fa01f6528037e68eb352f8afb2ab7c523fb5c1b816e3e6a3
MD5 3aa2d81e69021c4f9c6802a03790c1b1
BLAKE2b-256 2f47739834f5e4a1bd6e284377934f9c7cae7ce937e39d3d9e9857f81dbf9d7c

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