pasteur.encode.Encoder#

class pasteur.encode.Encoder(*args, _from_factory=False, **kwargs)[source]#

Attributes

Methods

decode(data)

encode(tables, ctx, ids)

fit(attrs, tables, ctx_attrs, ctx, ids)

get_factory(*args, **kwargs)

Returns a factory that registers this module to the system.

get_metadata()

decode(data)[source]#
Return type:

tuple[dict[str, LazyDataset[DataFrame]], dict[str, dict[str, LazyDataset[DataFrame]]], dict[str, LazyDataset[DataFrame]]]

encode(tables, ctx, ids)[source]#
Return type:

dict[str, Union[Any, LazyDataset[Any]]]

fit(attrs, tables, ctx_attrs, ctx, ids)[source]#
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().

get_metadata()[source]#
Return type:

TypeVar(META)

name: str = ''#