class arpes.deep_learning.transforms.ReversibleLambda(encodes: typing.Callable, decodes: typing.Callable = <function ReversibleLambda.<lambda>>)[source]

A reversible anonymous function, so long as the caller supplies an inverse.

__init__(encodes: typing.Callable, decodes: typing.Callable = <function ReversibleLambda.<lambda>>) None



Apply the inner lambda to the data in forward pass.

__delattr__(name, /)

Implement delattr(self, name).


Default dir() implementation.


Return self==value.

__format__(format_spec, /)

Default object formatter.

__ge__(value, /)

Return self>=value.

__getattribute__(name, /)

Return getattr(self, name).

__gt__(value, /)

Return self>value.

__init__(encodes[, decodes])


This method is called when a class is subclassed.

__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.



Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.


Return repr(self).

__setattr__(name, value, /)

Implement setattr(self, name, value).


Size of object in memory, in bytes.


Return str(self).


Abstract classes can override this to customize issubclass().











list of weak references to the object (if defined)