Skip to main content

Module label_encoder

Module label_encoder 

Source
Expand description

Label encoder: maps string labels to integer indices.

Learns an ordered mapping from unique string labels to consecutive integers 0, 1, ..., n_classes - 1. Supports forward (label → int) and reverse (int → label) transformation.

Structs§

FittedLabelEncoder
A fitted label encoder holding the bidirectional label-to-index mapping.
LabelEncoder
An unfitted label encoder.