This folder contains all of the necessary files to replicate the following graphs depicting the efficacy of the region-aware varaint of ReCom with respect to a custom score.
The score is computed as follows: For a given partitition
with
and
where
First the user will need to install the necessary python packages provided in
the python_packages.txt
file. This as simple as running
pip install -r python_packages.txt
To replicate these graphs from scratch, you may run the provided python scripts in the order
run_chains.py
score_jsonl_files.py
make_graphs.py
Note that the first script will take several hours to run. For the convenience
of the reader, the output of run_chains.py
is provided in the jsonl_files
folder in the XBEN format. Any interested reader my run the
ben_decompress_files.py
script to get the data in the correct format. For
more information on using this script, see the
GerryTools doumentation for BEN.
Any user familiar with cargo and Rust may also run the bash file provided
after installing the binary-ensemble
package.
⚠️ Warning⚠️ The jsonl files provided in thejsonl_files
folder will consume 37GB of disk space when decompressed.
For the convenience of the reader, the outputs of the score_jsonl_files.py
script are provided in the csv_files
folder so that the user only needs to run
make_graphs.py
to replicate the graphs. This should also make it easier to analyze
the data should the user wish to do so.