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§
- Fitted
Label Encoder - A fitted label encoder holding the bidirectional label-to-index mapping.
- Label
Encoder - An unfitted label encoder.