Skip to main content

RLROM is a library for testing and training reinforcement learning agent using online monitoring of signal temporal logics formulas, and more.

Project description

RLRom

This module integrates Robust Online Monitoring methods with Reinforcement Learning stuff. The motivation is first to test RL agents using interpretable monitors, then use these monitors to train models to perform complex tasks, and/or converge toward behaviors that reliably satisfy certain requirements.

Install

Those are needed for building some of the required python modules, in particular stlrom for STL monitoring.

  • CMake
  • swig

Then installing should be as simple as

pip install rlrom 

Note that some environments still require an older version of Gym. It can be installed with

pip install rlrom[old_gym]

Getting Started

RLRom reads configuration files in the YAML format as inputs. Examples are provided in the examples folder. A command line interface is provided through the script rlrom_run. For instance,

$ rlrom_run test examples/cartpole/cfg_cartpole.cfg

will run a few episode of the cartpole classic environment, fetching a model on huggingface and monitor a formula on these episodes.

More programmatic features are demonstrated in notebooks, in particular this notebook which presents a case study around highway-env environment.

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

rlrom-0.1.2.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

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

rlrom-0.1.2-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file rlrom-0.1.2.tar.gz.

File metadata

  • Download URL: rlrom-0.1.2.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for rlrom-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7cf0bfb1749668bee858ad368bebce2b8fd954788551a525d54bf6f52fb5430b
MD5 d0f702d73f2b47d3a9aa5bfb3bf94238
BLAKE2b-256 2e5e45f882368ad0539f03bd9008b2a553ee5c65e7ac5e019722895ec6a92df2

See more details on using hashes here.

File details

Details for the file rlrom-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: rlrom-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for rlrom-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a9f4aa3238939160e815af520339bc7717c56ea913e312b2fb06b22feb14c87d
MD5 7f8ae026ee74ee1ff75449969705b95c
BLAKE2b-256 6d6e9d813b406d1c67b4bb395a55e6e73917f4e03efe4ad8887186ca1b92e517

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