dataeval.config

Global configuration settings for DataEval.

Classes

GlobalConfig

Global configuration for DataEval runtime settings.

Functions

get_batch_size([override])

Return the batch size to use.

get_device([override])

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.

set_batch_size(batch_size)

Set the default batch size to use when processing data.

set_device(device)

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

set_max_processes(processes)

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

set_seed(seed[, all_generators, deterministic])

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

use_batch_size(batch_size)

Context manager to temporarily override the default batch size.

use_device(device)

Context manager to temporarily override the default device.

use_max_processes(processes)

Context manager to temporarily override the maximum number of processes.