lale.lib.autogen.label_encoder module

class lale.lib.autogen.label_encoder.LabelEncoder

Bases: PlannedIndividualOp

Combined schema for expected data and hyperparameters.

This documentation is auto-generated from JSON schemas.

fit(X, y=None, **fit_params)

Train the operator.

Note: The fit method is not available until this operator is trainable.

Once this method is available, it will have the following signature:

Parameters

y (array of items : float) – Target values.

transform(X, y=None)

Transform the data.

Note: The transform method is not available until this operator is trained.

Once this method is available, it will have the following signature:

Parameters

y (array of items : float) – Target values.

Returns

result – Transform labels to normalized encoding.

Return type

array of items : float