Skip to content

Execution

  • TYPE_CHECKING
  • VALID_EXECUTOR_TYPES

Execute replicates one after another within the main process.

__init__(progress: 'bool' = False) → None

method SerialExecution.run_experiment_loop

Section titled “method SerialExecution.run_experiment_loop”
run_experiment_loop(
experiment: "'Experiment'",
replicate_fn: 'Callable[[int], Any]'
) → List[Any]

Run SYNC replicates concurrently using ThreadPoolExecutor or ProcessPoolExecutor.

__init__(
max_workers: 'Optional[int]' = None,
executor_type: 'str' = 'thread',
progress: 'bool' = False
) → None

method ParallelExecution.run_experiment_loop

Section titled “method ParallelExecution.run_experiment_loop”
run_experiment_loop(
experiment: "'Experiment'",
replicate_fn: 'Callable[[int], Any]'
) → List[Any]

Run async replicates concurrently using asyncio.gather.

__init__(progress: 'bool' = False) → None

run_experiment_loop(
experiment: "'Experiment'",
replicate_fn: 'Callable[[int], Any]'
) → List[Any]