SwapTupleArgs

class hybrid_learning.experimentation.fuzzy_exp.fuzzy_exp_helpers.SwapTupleArgs[source]

Bases: TupleTransforms

Swap the two arguments in a tuple.

Public Data Attributes:

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(inp, target)

Swap target and input.

Inherited from : py: class:TupleTransforms

apply_to(inp, target)

Swap target and input.

Inherited from : py: class:Transform

apply_to(inp, target)

Swap target and input.

Special Methods:

Inherited from : py: class:TupleTransforms

__init__()

Init.

__call__(*inputs)

Apply the transformation to the tuple (inp, target); the output again is a tuple.

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__(*inputs)

Apply the transformation to the tuple (inp, target); the output again is a tuple.


apply_to(inp, target)[source]

Swap target and input.

Return type

Tuple