Execution
module crystallize.plugins.execution
Section titled “module crystallize.plugins.execution”Global Variables
Section titled “Global Variables”- TYPE_CHECKING
- VALID_EXECUTOR_TYPES
class SerialExecution
Section titled “class SerialExecution”Execute replicates one after another within the main process.
method SerialExecution.__init__
Section titled “method SerialExecution.__init__”__init__(progress: 'bool' = False) → Nonemethod SerialExecution.run_experiment_loop
Section titled “method SerialExecution.run_experiment_loop”run_experiment_loop( experiment: "'Experiment'", replicate_fn: 'Callable[[int], Any]') → List[Any]class ParallelExecution
Section titled “class ParallelExecution”Run SYNC replicates concurrently using ThreadPoolExecutor or ProcessPoolExecutor.
method ParallelExecution.__init__
Section titled “method ParallelExecution.__init__”__init__( max_workers: 'Optional[int]' = None, executor_type: 'str' = 'thread', progress: 'bool' = False) → Nonemethod ParallelExecution.run_experiment_loop
Section titled “method ParallelExecution.run_experiment_loop”run_experiment_loop( experiment: "'Experiment'", replicate_fn: 'Callable[[int], Any]') → List[Any]class AsyncExecution
Section titled “class AsyncExecution”Run async replicates concurrently using asyncio.gather.
method AsyncExecution.__init__
Section titled “method AsyncExecution.__init__”__init__(progress: 'bool' = False) → Nonemethod AsyncExecution.run_experiment_loop
Section titled “method AsyncExecution.run_experiment_loop”run_experiment_loop( experiment: "'Experiment'", replicate_fn: 'Callable[[int], Any]') → List[Any]