Skip to main content

rddlgym: A toolkit for working with RDDL domains in Python3.

Project description

rddlgym License

A toolkit for working with RDDL domains in Python3.

Quickstart

$ pip3 install rddlgym

Usage

rddlgym can be used as a standalone script or programmatically.

Script mode

$ rddlgym --help
usage: rddlgym [-h] [--rddl RDDL] [-v] {list,info,show}

rddl-gym: A toolkit for working with RDDL domains in Python3.

positional arguments:
  {list,info,show}  available commands

optional arguments:
  -h, --help        show this help message and exit
  --rddl RDDL       RDDL id
  -v, --verbose     verbosity mode

Programmatic mode

import rddlgym

model_id = 'Reservoir-8'

# Get raw RDDL model
raw = rddlgym.make(model_id, mode=rddlgym.RAW)
print(raw)

# Get a RDDL parser
parser = rddlgym.make(model_id, mode=rddlgym.AST)

# Get a RDDL2TensorFlow compiler
compiler = rddlgym.make(model_id, mode=rddlgym.SCG)

License

Copyright (c) 2018-2019 Thiago Pereira Bueno All Rights Reserved.

rddlgym is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

rddlgym is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with rddlgym. If not, see http://www.gnu.org/licenses/.

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

rddlgym-0.5.10.tar.gz (28.3 kB view details)

Uploaded Source

File details

Details for the file rddlgym-0.5.10.tar.gz.

File metadata

  • Download URL: rddlgym-0.5.10.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/3.7.4

File hashes

Hashes for rddlgym-0.5.10.tar.gz
Algorithm Hash digest
SHA256 9c1b4a4ffd7f108a07c518fcdc88e1980bdef7c273ee11e01ad4033fb73a0364
MD5 620c687a9829f16d9238a92bda5c4ee0
BLAKE2b-256 fdfe5f4b3581fd855d39c994eef848a860321c0f05e766a0c0c49ab55f0e2e25

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