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

Uploaded Python 3

File details

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

File metadata

  • Download URL: rlrom-0.1.1.tar.gz
  • Upload date:
  • Size: 20.0 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.1.tar.gz
Algorithm Hash digest
SHA256 d632f370b5ea36545439d565cb60ca5b171ac8bea1c904605d0d2d82a31ba331
MD5 51fa135343237bd5ab00fd497e00f5ad
BLAKE2b-256 3ae25a120455ffacdab983392eeeb4bf14dc8e166ec8e53b105c2d9cd7a1095a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rlrom-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32355ae76a0676e0bc6c7cafcf56afd827ba837fa6b3164c53f8d5773777c7c2
MD5 a72bb26fcbb25dc5316e9321459973fe
BLAKE2b-256 e81cd626ccb747910f5f796ac020612633ba939de0ba010011f60544770e4936

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