The Imputers.get() method is the primary way to instantiate an imputer. It supports different optimization modes:
AutoML Mode (Hyperband)
Use optimizer="hyperband" to enable automated model selection. You can constrain the search space using regression_seed and classifier_seed.
Simple Mode
Use optimizer="simple" to bypass the hyperband optimization process, which is useful for testing specific model seeds without the overhead of hyperparameter optimization.
# AutoML with specific model seeds
model = imputers.get(
"hyperimpute",
optimizer="hyperband",
regression_seed=["linear_regression"],
classifier_seed=["logistic_regression"],
select_model_by_column=False,
select_model_by_iteration=False,
select_lazy=True,
)
# Simple mode with specific model seeds
model = imputers.get(
"hyperimpute",
optimizer="simple",
regression_seed=["random_forest_regressor"],
classifier_seed=["random_forest"],
select_model_by_column=False,
select_model_by_iteration=False,
select_lazy=True,
)