Transform
- class hybrid_learning.datasets.transforms.common.Transform[source]
Bases:
ABCBase class for transformations.
Public Data Attributes:
The identity class or classes for composition / addition.
Settings to reproduce the instance.
Public Methods:
apply_to(*inps)Application of transformation.
Special Methods:
__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__(*inps)General call to the transformation.
- __add__(other)[source]
Return a flat composition of
selfwithother. In caseotheris a no-op transforms, return a copy ofself.
- IDENTITY_CLASS: Optional[Union[type, List[type]]] = None
The identity class or classes for composition / addition. See
general_add().
- __hash__ = None