Base

Base Executor

Base executor class for the parallelisation of experiments.

class orion.executor.base.BaseExecutor(n_workers, **kwargs)[source]

Base executor class

Parameters
n_workers: int

The number of workers the Executor should have. Depending on the backend it may spawn this many worker or connect to running instance that dispatch work to n_workers workers.

Methods

submit(function, *args, **kwargs)

Submit work to the executor for asynchronous execution

wait(futures)

Wait for all futures to complete execution.

submit(function, *args, **kwargs)[source]

Submit work to the executor for asynchronous execution

Parameters
function: a callable object

A function to be executed by the executor. The function must be serializable.

*args, **kwargs:

Arguments for the function. The arguments must be serializable.

wait(futures)[source]

Wait for all futures to complete execution.

Parameters
futures: `concurrent.futures.Futures` or equivalent interface

The objects returned by submit() of the executor.

class orion.executor.base.Executor(of_type, *args, **kwargs)[source]

Factory class to build Executors