From b8ec2b8076f5507de066b3b9a3f5c955d50833a2 Mon Sep 17 00:00:00 2001 From: Mirko Bunse Date: Mon, 12 Jun 2023 10:53:49 +0200 Subject: [PATCH] Document the experiments --- docs/source/experiments.md | 51 ++++++++++++++++++++++++++++++++++++++ docs/source/index.md | 1 + 2 files changed, 52 insertions(+) create mode 100644 docs/source/experiments.md diff --git a/docs/source/experiments.md b/docs/source/experiments.md new file mode 100644 index 0000000..7a555c2 --- /dev/null +++ b/docs/source/experiments.md @@ -0,0 +1,51 @@ +# Experiments + +We validate the performance of `qunfold`, in comparison to [QuaPy](https://github.com/HLT-ISTI/QuaPy), through experiments with the [LeQua2022 data](LeQua2022.github.io/). We document these experiments for transparency and to facilitate implementations of similar experiments. + + +## Setup + +You can install the dependencies either in an isolated [Docker](https://docs.docker.com/) environment or locally with `venv`. + +### Docker setup (optional) + +We provide an isolated Docker environment for conveniently running the experiments. To create the image and start a container from it, call + +```bash +cd docker/ +make +./run.sh +``` + +Inside the container, navigate to the `qunfold` repository and install the dependencies + +```bash +cd /mnt/home/.../qunfold/ +pip install .[experiments] +``` + +### Local setup (alternative) + +Without Docker, use `venv` to install the dependencies + +```bash +python -m venv venv +venv/bin/pip install -e .[experiments] +``` + + +## Running the experiments + +The experiments are implemented through a main function that you can call as follows: + +```bash +venv/bin/python -m qunfold.experiments.lequa lequa_results.csv +``` + +With the `--is_test_run` switch, you can execute the entire code path with minimal effort, to test whether the experiment is working. This functionality is particularly helpful if you make changes to the experiments. + +Finally, the tables with average performance values are created as follows: + +```bash +venv/bin/python -m qunfold.experiments.create_table lequa_results.csv lequa_results.tex +``` diff --git a/docs/source/index.md b/docs/source/index.md index be34a1d..d7000b7 100644 --- a/docs/source/index.md +++ b/docs/source/index.md @@ -4,6 +4,7 @@ self api developer-guide +experiments ``` # Quickstart