setup_benchmark
class BenchmarkSetup
dataclass
#
Bases: ABC
name: str
classvar
#
The name of the benchmark group.
def download(path)
abstractmethod
classmethod
#
def default_location()
classmethod
#
def default_requirements_path()
classmethod
#
def install_cmd(requirements_path)
classmethod
#
Get the command to install the requirements.
PARAMETER | DESCRIPTION |
---|---|
requirements_path |
The path to the requirements.txt file.
TYPE:
|
Source code in src/mfpbench/setup_benchmark.py
def install(requirements_path)
classmethod
#
Install the requirements to download the data.
PARAMETER | DESCRIPTION |
---|---|
requirements_path |
The path to the requirements.txt file.
TYPE:
|
Source code in src/mfpbench/setup_benchmark.py
def source(name)
classmethod
#
Get all the sources.
Source code in src/mfpbench/setup_benchmark.py
def download_status(source, datadir=None)
#
Check whether the data is downloaded for some source.
Source code in src/mfpbench/setup_benchmark.py
def print_download_status(sources=None, datadir=None)
#
Print the status of the data.
PARAMETER | DESCRIPTION |
---|---|
sources |
The benchmarks to check the status of. |
datadir |
Where the root data directory is
TYPE:
|
Source code in src/mfpbench/setup_benchmark.py
def print_requirements(benchmarks)
#
Print the status of the data.
PARAMETER | DESCRIPTION |
---|---|
benchmarks |
The benchmarks to check the status of. |
Source code in src/mfpbench/setup_benchmark.py
def setup(benchmark, *, datadir=None, download=True, install=False, force=False)
#
Download data for a benchmark.
PARAMETER | DESCRIPTION |
---|---|
benchmark |
The benchmark to download the data for.
TYPE:
|
datadir |
Where the root data directory is
TYPE:
|
download |
Whether to download the data
TYPE:
|
install |
Whether to install the requirements for the benchmark. If True, will install the default. If a str, tries to interpret it as a full path. |
force |
Whether to force redownload of the data
TYPE:
|