RecursiveLambda

class hybrid_learning.datasets.transforms.image_transforms.RecursiveLambda(fun)[source]

Bases: ImageTransform

Generic lambda transformation that applies the given function with the standard ImageTransform recursion. The same caveats hold as for Lambda.

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(img)

Application of the lambda.

Inherited from : py: class:ImageTransform

apply_to(img)

Application of the lambda.

Inherited from : py: class:Transform

apply_to(img)

Application of the lambda.

Special Methods:

__repr__()

Return repr(self).

__init__(fun)

Init.

Inherited from : py: class:ImageTransform

__call__(img)

Application of transformation.

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__(img)

Application of transformation.


Parameters

fun (Callable[[Tensor], Tensor]) –

__init__(fun)[source]

Init.

Parameters

fun (Callable[[Tensor], Tensor]) – the function to apply on call

__repr__()[source]

Return repr(self).

Return type

str

apply_to(img)[source]

Application of the lambda.

Parameters

img (Tensor) –

Return type

Tensor

fun: Callable[[Tensor], Tensor]

The function to apply on call.

property settings: Dict[str, Any]

Settings to reproduce the instance.