lore_sa.encoder_decoder.EncDec
- class lore_sa.encoder_decoder.EncDec(dataset_descriptor)[source]
Generic class to implement an encoder/decoder
It is implemented by different classes, each of which must implements the functions: enc, dec, enc_fit_transform the idea is that the user sends the complete record and here only the categorical variables are handled
Methods
__init__
(dataset_descriptor)decode
(x)decode_target_class
(x)encode
(x)It applies the encoder to the input features
Provides a dictionary with the new encoded features name and the new index :return: