Pipeline#
- class zrad.preprocessing.pipeline.Pipeline(steps)[source]#
Run named preprocessing steps in sequence.
A pipeline chains small preprocessing objects that expose an
applymethod, for example resampling, ROI-mask construction, re-segmentation, and discretization. Each step receives the output of the previous step.- Parameters:
steps (iterable of tuple[str, object]) – Ordered preprocessing steps. Each item must be a
(name, step)tuple, wherenameis a non-empty string andstepexposes anapplymethod. Steps are applied in the order provided.
Methods
|
Apply all steps and return the transformed data. |
Return pipeline step parameters mapped by step name. |