dataeval.config

Global configuration settings for DataEval.

Classes

GlobalConfig

Global configuration for DataEval runtime settings.

Functions

get_batch_size

Return the batch size to use.

get_device

Return the PyTorch device to use.

get_max_processes

Return the maximum number of worker processes to use when running tasks that support parallel processing.

get_seed

Return the seed for random state or seed.

resolve_batch_size

Resolve a batch size from an ordered list of candidates.

set_batch_size

Set the default batch size to use when processing data.

set_device

Set the default device to use when executing against a PyTorch backend.

set_max_processes

Set the maximum number of worker processes to use when running tasks that support parallel processing.

set_seed

Set the seed for use by classes that allow for a random state or seed.

use_batch_size

Context manager to temporarily override the default batch size.

use_device

Context manager to temporarily override the default device.

use_max_processes

Context manager to temporarily override the maximum number of processes.