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

__init__(descriptor: dict, target_class: str = None)[source]

Methods

__init__(descriptor[, target_class])

decode(x)

Decode the instance applyng the onehot and label decode methods :param x: :return:

decode_target_class(x)

Provides the value of the target class only.

encode(x)

Combine one-hot encoding, as first, and label encoding to provide a table encoded.

get_encoded_features()

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:

encode(x: array)[source]

Combine one-hot encoding, as first, and label encoding to provide a table encoded. :param [Numpy array] x: Array to encode :return [Numpy array]: Encoded array

get_encoded_features()[source]

Provides a dictionary with the new encoded features name and the new index :return: