pasteur.transform.Transformer#

class pasteur.transform.Transformer(**_)[source]#

Attributes

deterministic

For a given output, the input is the same.

lossless

The decoded output equals the input.

stateful

Transformer fits variables.

name

Methods

fit(data)

Fits to the provided data

fit_transform(data)

get_attributes()

get_factory(*args, **kwargs)

Returns a factory that registers this module to the system.

reduce(other)

reverse(data)

transform(data)

deterministic = True#

For a given output, the input is the same.

fit(data)[source]#

Fits to the provided data

fit_transform(data)[source]#
Return type:

DataFrame

get_attributes()[source]#
Return type:

Mapping[str | tuple[str, ...], Attribute]

classmethod get_factory(*args, **kwargs)#

Returns a factory that registers this module to the system.

Any *args and **kwargs passed to this function will be saved and passed to the module’s __init__() method when calling build().

lossless = True#

The decoded output equals the input.

name: str#
reduce(other)[source]#
reverse(data)[source]#
Return type:

DataFrame

stateful = False#

Transformer fits variables.

transform(data)[source]#
Return type:

DataFrame