evalml.pipelines.components.OneHotEncoder

class evalml.pipelines.components.OneHotEncoder(top_n=10, random_state=0)[source]

One-hot encoder to encode non-numeric data

name = 'One Hot Encoder'
model_family = 'none'
hyperparameter_ranges = {}

Instance attributes

Methods:

__init__

Initalizes self.

describe

Describe a component and its parameters

fit

Fits component to data

fit_transform

Fits on X and transforms X

get_feature_names

Returns names of transformed and added columns

transform

One-hot encode the input DataFrame.