DashAI.back.converters.LabelEncoder

class LabelEncoder(**kwargs)[source]

Scikit-learn’s LabelEncoder wrapper for DashAI that supports multiple columns.

__init__(**kwargs)[source]

Methods

__init__(**kwargs)

changes_row_count()

Indicates if the converter changes the number of rows in the dataset.

fit(x[, y])

Fit label encoders to each column in the dataset.

get_metadata()

Get metadata values for the current converter.

get_schema()

Generates the component related Json Schema.

transform(x[, y])

Transform columns preserving NaN values.

validate_and_transform(raw_data)

It takes the data given by the user to initialize the model and returns it with all the objects that the model needs to work.

Attributes

DESCRIPTION

DISPLAY_NAME

SHORT_DESCRIPTION

SUPERVISED

TYPE

metadata