EpiBench is a work-in-progress benchmarking tool for evaluating performance of infectious disease forecasting models. The package is still in development.
- Personal computer or standard Linux workstation (Windows/macOS/Linux): Continue with the instructions below.
- High-performance computing (HPC) cluster: See
installation_longleaf.
- Python 3.10 or later
- Git
- R and the
scoringutilspackage for theepibench scorecommand
git clone https://github.com/ACCIDDA/EpiBenchmark.git
cd EpiBenchmark
uv sync
uv run epibench --helpClone the repository:
git clone https://github.com/ACCIDDA/EpiBenchmark.git
cd EpiBenchmarkEpiBenchmark supports installation using either uv (recommended) or pip.
This is the fastet installation method.
uv sync.venv\Scripts\activatesource .venv/bin/activateAlternatively, users can run commands without activating the virtual environment when using uv:
uv run epibench --helpCreate a virtual environment.
python -m venv .venv
.venv\Scripts\activatepython -m venv .venv
source .venv/bin/activateUpgrade pip:
python -m pip install --upgrade pipInstall EpiBenchmark in editable mode:
python -m pip install -e .After installation, verify that the command-line interface is available:
epibench
epibench --helpUsers can also verify the available subcommands:
epibench setup --help
epibench score --help
epibench plot --helpThe Python virtual environment only manages EpiBenchmark's Python dependencies.
The epibench score command also calls Rscript, so scoring has two external
requirements:
Rscriptmust be available on users'PATH- the CRAN package
scoringutilsmust be installed in the R library used by thatRscript
Check that R is available with:
Rscript --versionInstall scoringutils with:
Rscript -e 'install.packages("scoringutils")'Verify that the package is available with:
Rscript -e 'library(scoringutils)'If epibench score reports that Rscript or scoringutils is missing, make
sure they are installed in the same R environment used by Rscript
command.
Deletes the local .venv directory, allowing users to create a fresh virtual environment.
If Command Prompt:
rmdir /s /q .venv If PowerShell:
Remove-Item -Recurse -Force .venv (PowerShell)rm -rf .venv