lore_sa.encoder_decoder.TabularEnc
- class lore_sa.encoder_decoder.TabularEnc(descriptor: dict, target_class: str = None)[source]
It combines different encoders/decoders over a table dataset
Methods
__init__
(descriptor[, target_class])decode
(x)Decode the instance applyng the onehot and label decode methods :param x: :return:
Provides the value of the target class only.
encode
(x)Combine one-hot encoding, as first, and label encoding to provide a table encoded.
Provides a dictionary with the new encoded features name and the new index :return:
- decode(x: array)[source]
Decode the instance applyng the onehot and label decode methods :param x: :return:
- decode_target_class(x: array)[source]
Provides the value of the target class only. :param x: :return: