Skip to main content

Module cat_encoder

Module cat_encoder 

Source
Expand description

CategoricalOrdinalEncoder (cat_encoder_mode="appearance", the wrapper’s default): assigns integer codes to a categorical column’s values in order of first appearance in the training data; unknown/missing values (at fit or transform time) map to -1.

Structs§

CategoricalOrdinalEncoder
LabelEncoder
Classification label encoder (CategoricalOrdinalEncoder(mode="alphabetical") as used on y): unique labels sorted alphabetically (by their string form) get codes 0..n_classes-1.