Skip to main content

Benchmark your code

Project description

The Downward Lab Python package facilitates running experiments for the Fast Downward planning system. It uses the generic experimentation package Lab.

Lab is a Python package for running code on a large set of benchmarks. Experiments can be conducted on a single machine or on a cluster. The package also contains code for parsing results and creating reports. Currently, Lab comes bundled with Downward Lab.

Code: https://bitbucket.org/jendrikseipp/lab

Documentation: https://lab.readthedocs.io

Cite: please cite Downward Lab by using

@Misc{seipp-et-al-misc2017,
  author =       "Jendrik Seipp and Florian Pommerening and
                  Silvan Sievers and Malte Helmert",
  title =        "{Downward} {Lab}",
  year =         "2017",
  doi =          "10.5281/zenodo.790461",
  url =          "https://doi.org/10.5281/zenodo.790461",
  howpublished = "\url{https://doi.org/10.5281/zenodo.790461}"
}

Install Lab in a virtual environment

We recommend installing Lab in a Python virtual environment. This has the advantage that there are no modifications to the system-wide configuration, and that you can create multiple environments with different Lab versions (e.g., for different papers) without conflicts. Using Python 3, you would proceed like this:

# Install required packages, including virtualenv.
sudo apt install mercurial python3 python3-venv

# Create and activate a Python 3 virtual environment for Lab.
python3 -m venv lab-venv  # or any other path instead of lab-venv
source lab-venv/bin/activate

# Install Lab in the virtual environment.
pip install lab  # or a specific version with lab==x.y

If you want to install the latest development version and/or need to change Lab itself, you can clone the Lab repo and install it in the virtual environment:

hg clone https://bitbucket.org/jendrikseipp/lab /path/to/lab
pip install --editable /path/to/lab

The --editable flag in the last command is optional. It installs the project in “editable mode”, which is needed if you want to change the Lab source code, since any changes under /path/to/lab are immediately reflected in the installed package.

Please note that before running an experiment script you need to activate the virtual environment with:

source lab-venv/bin/activate

Install Lab globally

Alternatively, you can install Lab and its dependencies globally:

# Install dependencies.
sudo apt install mercurial python python-matplotlib python-simplejson
# Clone Lab repository.
hg clone https://bitbucket.org/jendrikseipp/lab /path/to/lab

Add to your .bashrc to make Lab available on the PYTHONPATH:

export PYTHONPATH=/path/to/lab

Update shell configuration:

source ~/.bashrc

Notes about requirements

  • Lab needs Python 2.7 or Python >= 3.5.

  • matplotlib is only needed for reports that generate graphs.

  • simplejson is optional, but speeds up generating reports.

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

lab-4.2.tar.gz (124.0 kB view details)

Uploaded Source

Built Distribution

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

lab-4.2-py2.py3-none-any.whl (160.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file lab-4.2.tar.gz.

File metadata

  • Download URL: lab-4.2.tar.gz
  • Upload date:
  • Size: 124.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for lab-4.2.tar.gz
Algorithm Hash digest
SHA256 4df70f3a2139307370d8a410fe901901afe1439c5d8c51e209864ca141c69fe3
MD5 65f02532c4f683b4377d38a1693f6d09
BLAKE2b-256 8a58c027be5e841b5d8a7a0e51976770496b1d7dc9d04ca2dfe33a273e3d72d3

See more details on using hashes here.

File details

Details for the file lab-4.2-py2.py3-none-any.whl.

File metadata

  • Download URL: lab-4.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 160.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for lab-4.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cff1f5a2a9f60db8d5e2626995ae7112e50d29447f4bde9c9c3fac9e171d2a78
MD5 3f72ace9053b57f8048b6ccc71cd84e0
BLAKE2b-256 f013fff273f4b50554eda5a46809a252e73cf1a7d0dfa9372e3a4d5cdd306914

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