Pipeline Module

HiDi’s Pipeline module exposes functionality for creating and running pipelines.

class hidi.pipeline.Pipeline(transformers)[source]

Bases: object

Pipeline of transforms.

Sequentially apply a list of transforms. All steps of the pipeline must be ‘transforms’, that is, they must implement transform method. The Pipeline abstraction is inspired by the SciKit Learn Pipeline abstraction.

Takes a list of transform instances.

add(transform)[source]

Add a transform to the pipeline.

run(io=None, progress=True, **kwargs)[source]

Executes the pipeline and returns the final result.

Takes an optional io parameter that will serve as input to the initial transformer.