PipelineGraph¶
- class verta.pipeline.PipelineGraph(steps: Union[List[PipelineStep], Set[PipelineStep], Tuple[PipelineStep]])¶
Object representing a collection of PipelineSteps to be run as a single inference pipeline.
- Parameters:
steps (list, set, or tuple of
PipelineStep
) – Set of all possible steps of the pipeline. Ordering of steps in the pipeline itself is determined by the predecessors provided to each step.- Variables:
steps (set of
PipelineStep
) – Set of PipelineSteps comprising all possible steps in this PiplineGraph.
- set_steps(steps: Union[List[PipelineStep], Set[PipelineStep], Tuple[PipelineStep]]) Set[PipelineStep] ¶
Update the set of steps for this PipelineGraph to the provided value.
- Parameters:
steps (list, set, tuple of
PipelineStep
) – List, set, or tuple of all possible steps of the pipeline graph. All options are converted to a set, so order is irrelevant and duplicates are removed.- Returns:
set of
PipelineStep
– The steps now set for this graph, if validation is successful.- Raises:
TypeError – If
steps
is not a set of PipelineStep objects.