Label Encoder

../../../../_images/label_encoder.svg

Encode single string labels with value between 0 and n_classes-1.

Documentation

This transformer should be used to encode target values, i.e. y, and not the input X.

Example:

[1, 1, 2, 6] -> [0, 0, 1, 2]

Attributes

classes_

Holds the label for each class.

Definition

Output ports

model
Type: model
Description: Model

Implementation

class node_preprocessing.LabelEncoder[source]