evalml.pipelines.components.TargetEncoder¶
-
class
evalml.pipelines.components.
TargetEncoder
(cols=None, smoothing=1.0, handle_unknown='value', handle_missing='value', random_seed=0, **kwargs)[source]¶ Target encoder to encode categorical data
-
name
= 'Target Encoder'¶
-
model_family
= 'none'¶
-
hyperparameter_ranges
= {}¶
-
default_parameters
= {'cols': None, 'handle_missing': 'value', 'handle_unknown': 'value', 'smoothing': 1.0}¶
Instance attributes
needs_fitting
parameters
Returns the parameters which were used to initialize the component
Methods:
Initializes a transformer that encodes categorical features into target encodings.
Constructs a new component with the same parameters and random state.
Describe a component and its parameters
Fits component to data
Fits on X and transforms X
Return feature names for the input features after fitting.
Loads component at file path
Saves component at file path
Transforms data X.
-