transformers.LabelEncoderWithUnknown¶
-
class
transformers.LabelEncoderWithUnknown(feature_name=None)[source]¶ Convert a categorical feature into values [0, n], where [0, n) represent the known categories from the training data and n represents unknown data.
-
__init__(feature_name=None)¶
Methods
__init__([feature_name])fit(ds[, y])fit_transform(X[, y])Fit to data, then transform it. get_feature_names()get_params([deep])Get parameters for this estimator. set_params(**params)Set the parameters of this estimator. transform(ds)Attributes
DEFAULT_PIPELINE_NAME-