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 

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.0.tar.gz (19.9 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.0-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rlrom-0.1.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for rlrom-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f10f7c09846bb0df27d2e0f46de2824b6db1b46412480d29b624064416112f8e
MD5 8542e34c77019ba115bd36937f2db6ef
BLAKE2b-256 18288a303239253cf534b9fd96c17c0a824558546bfe09560ff5309fd400f16b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rlrom-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for rlrom-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8fb8d008a640e1f8a954d805ac1f22a5f24ab88732483ad60e4403a319c31aa3
MD5 fd76385395549a844d5927c50cc4ecea
BLAKE2b-256 a71f0be4eb0ec185ea242256b9d28fe364e800984740e697d9b7fbd9b64f47bb

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