OnValues
- class hybrid_learning.datasets.transforms.dict_transforms.OnValues(trafo)[source]
Bases:
DictTransformPerform a transformation on all values of a dict.
Public Data Attributes:
Settings to reproduce the instance.
Inherited from : py: class:DictTransform
Settings to reproduce the instance.
Inherited from : py: class:Transform
IDENTITY_CLASSThe identity class or classes for composition / addition.
Settings to reproduce the instance.
Public Methods:
apply_to(annotations)Apply transformation in to all values of the
annotationsdict.Inherited from : py: class:DictTransform
apply_to(annotations)Apply transformation in to all values of the
annotationsdict.Inherited from : py: class:Transform
apply_to(annotations)Apply transformation in to all values of the
annotationsdict.Special Methods:
__init__(trafo)Inherited from : py: class:DictTransform
__call__(annotations)Call method modifying a given dictionary.
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__(annotations)Call method modifying a given dictionary.