pasteur.table

pasteur.table#

Description

Contains the logic for handling multiple tables, and holding transformers and encoders.

The functionality is achieved through a class named ReferenceManager, which is used to generate the ID tables, and the TransformHolder, which holds everything required to encode and transform a table.

The TransformHolder holds a TableTransformer which hosts the Table’s transformers and multiple TableEncoder`s, which can be accesed with array syntax (ex. `[‘idx’]), one for each supported encoding.

Once the TransformHolder is fit, it can be loaded and used to transform, encode, reverse, and decode table partitions.

Classes

AttributeEncoderHolder(encoder, **kwargs)

Receives tables that have been encoded by the base transformers and have attributes, and reformats them to fit a specific model.

ReferenceManager(meta, name)

Manages the foreign relationships of a table.

SeqTransformerWrapper(modules[, parent, ...])

TableTransformer(meta, name, modules)