OnAll
- class hybrid_learning.datasets.transforms.tuple_transforms.OnAll(trafo)[source]
Bases:
_PartialTupleTrafoApply a given transformation to all tuple items. Variadic version of
OnIndex.Public Data Attributes:
Inherited from : py: class:_PartialTupleTrafo
settingsSettings to reproduce the instance.
Inherited from : py: class:Transform
IDENTITY_CLASSThe identity class or classes for composition / addition.
settingsSettings to reproduce the instance.
Public Methods:
apply_to(*inputs)Apply
trafoto all items in giveninputstuple.Inherited from : py: class:TupleTransforms
apply_to(*inputs)Apply
trafoto all items in giveninputstuple.Inherited from : py: class:Transform
apply_to(*inputs)Apply
trafoto all items in giveninputstuple.Special Methods:
Inherited from : py: class:_PartialTupleTrafo
__init__(trafo)Init.
Inherited from : py: class:TupleTransforms
__init__(trafo)Init.
__call__(*inputs)Apply the transformation to the tuple
(inp, target); the output again is a tuple.Inherited from : py: class:Transform
__repr__()Return repr(self).
__eq__(other)Return self==value.
__copy__()Return a shallow copy of self using settings.
__add__(other)Return a flat composition of
selfwithother.__radd__(other)Return a flat composition of
otherandself.__call__(*inputs)Apply the transformation to the tuple
(inp, target); the output again is a tuple.
- Parameters
trafo (Callable) –