Lambda#

class myoverse.transforms.Lambda(func, **kwargs)[source]#

Apply a custom function.

Parameters:

func (Callable) – Function to apply.

Examples

>>> transform = Lambda(lambda x: x ** 2)
>>> y = transform(x)

Methods

__init__(func, **kwargs)

_apply(x)

Apply the transform.