eotransform.transformers.compose.Compose
- class Compose(transformations: Iterable[Transformer])[source]
Bases:
Transformer[ComposedT,ComposedU]Composing a sequence of transformations together
>>> class PlusOne(Transformer[int, int]): ... def __call__(self, x): ... return x + 1 ... >>> Compose([PlusOne(), PlusOne()])(0) 2
- Parameters:
transformations – Multiple transformations applied to the input data
Methods