brain_pipe.runner.base.Runner¶
- class Runner(map_fn=None)¶
Bases:
ABC
Base Runner class, used to run Pipelines with DataLoaders.
- __init__(map_fn=None)¶
Initialize a Runner.
Methods
__init__
([map_fn])Initialize a Runner.
run
(pipelines_with_loaders)Run the pipelines with their corresponding dataloaders.
- run(pipelines_with_loaders: List[Tuple[DataLoader, Pipeline]])¶
Run the pipelines with their corresponding dataloaders.
- Parameters:
pipelines_with_loaders (List[Tuple[DataLoader, Pipeline]]) – A list of tuples containing a DataLoader and its corresponding Pipeline.
- Returns:
The results of the pipelines.
- Return type:
List[Any]