Transform
- class hybrid_learning.datasets.transforms.common.Transform[source]
Bases:
ABC
Base 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
self
withother
.__radd__
(other)Return a flat composition of
other
andself
.__call__
(*inps)General call to the transformation.
- __add__(other)[source]
Return a flat composition of
self
withother
. In caseother
is 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