Class - RandomShiftTransformer#
- class openfl.pipelines.random_shift_pipeline.RandomShiftTransformer[source]#
Bases:
TransformerRandom Shift Transformer class.
Methods
__init__()Initialize RandomShiftTransformer.
backward(data, metadata, **kwargs)Backward pass - Decompress data.
forward(data, **kwargs)Forward pass - compress data.
- backward(data, metadata, **kwargs)[source]#
Backward pass - Decompress data.
Implement the data transformation needed when going the oppposite direction to the forward method.
- Parameters:
data – The transformed data.
metadata – The metadata for the transformation.
- Returns:
The original data before the random shift.