evalml.pipelines.components.Imputer

Inheritance diagram of Imputer
class evalml.pipelines.components.Imputer(categorical_impute_strategy='most_frequent', numeric_impute_strategy='mean', fill_value=None, random_state=0, **kwargs)[source]

Imputes missing data according to a specified imputation strategy.

name = 'Imputer'
model_family = 'none'
hyperparameter_ranges = {'categorical_impute_strategy': ['most_frequent'], 'numeric_impute_strategy': ['mean', 'median', 'most_frequent']}
default_parameters = {'categorical_impute_strategy': 'most_frequent', 'fill_value': None, 'numeric_impute_strategy': 'mean'}

Instance attributes

parameters

Returns the parameters which were used to initialize the component

Methods:

__init__

Initalizes an transformer that imputes missing data according to the specified imputation strategy.”

clone

Constructs a new component with the same parameters

describe

Describe a component and its parameters

fit

Fits imputer to data

fit_transform

Fits on X and transforms X

load

Loads component at file path

save

Saves component at file path

transform

Transforms data X by imputing missing values