evalml.pipelines.components.OneHotEncoder¶
-
class
evalml.pipelines.components.
OneHotEncoder
(top_n=10, categories=None, drop=None, handle_unknown='ignore', handle_missing='error', random_state=0, **kwargs)[source]¶ One-hot encoder to encode non-numeric data.
-
name
= 'One Hot Encoder'¶
-
model_family
= 'none'¶
-
hyperparameter_ranges
= {}¶
-
default_parameters
= {'categories': None, 'drop': None, 'handle_missing': 'error', 'handle_unknown': 'ignore', 'top_n': 10}¶
Instance attributes
parameters
Returns the parameters which were used to initialize the component
Methods:
Initalizes an transformer that encodes categorical features in a one-hot numeric array.”
Constructs a new component with the same parameters
Describe a component and its parameters
Fits component to data
Fits on X and transforms X
Returns names of transformed and added columns
One-hot encode the input DataFrame.
-