openfl.pipelines.random_shift_pipeline.RandomShiftPipeline#
- class openfl.pipelines.random_shift_pipeline.RandomShiftPipeline(**kwargs)[source]#
Bases:
TransformationPipelineRandom Shift Pipeline.
Methods
__init__(**kwargs)Initialize.
backward(data, transformer_metadata, **kwargs)Backward pass of pipeline data transformer.
forward(data, **kwargs)Forward pass of pipeline data transformer.
is_lossy()If any of the transformers are lossy, then the pipeline is lossy.
- backward(data, transformer_metadata, **kwargs)[source]#
Backward pass of pipeline data transformer.
- Parameters:
data – The transformed data.
transformer_metadata – The metadata for the transformation.
**kwargs – Additional keyword arguments for the transformation.
- Returns:
The original data before the transformation.