DictTransform

class hybrid_learning.datasets.transforms.dict_transforms.DictTransform[source]

Bases: Transform

Basic transformation for dicts. This means a callable yielding a dict of a single value.

Public Data Attributes:

settings

Settings to reproduce the instance.

Inherited from : py: class:Transform

IDENTITY_CLASS

The identity class or classes for composition / addition.

settings

Settings to reproduce the instance.

Public Methods:

apply_to(annotations)

Call method modifying a given dictionary.

Inherited from : py: class:Transform

apply_to(annotations)

Call method modifying a given dictionary.

Special Methods:

__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 self with other.

__radd__(other)

Return a flat composition of other and self.

__call__(annotations)

Call method modifying a given dictionary.


__call__(annotations)[source]

Call method modifying a given dictionary.

Parameters

annotations (Mapping[str, Any]) –

Return type

Union[Mapping[str, Any], Any]

abstract apply_to(annotations)[source]

Call method modifying a given dictionary.

Parameters

annotations (Mapping[str, Any]) –

Return type

Union[Mapping[str, Any], Any]

abstract property settings

Settings to reproduce the instance.