Skip to content

Commit

Permalink
Don't remove empty features during imputation
Browse files Browse the repository at this point in the history
  • Loading branch information
roquelopez committed Feb 18, 2024
1 parent ed2d87f commit 7297a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alpha_automl/pipeline_synthesis/pipeline_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def change_default_hyperparams(primitive_object):
elif isinstance(primitive_object, OrdinalEncoder):
primitive_object.set_params(handle_unknown='use_encoded_value', unknown_value=-1)
elif isinstance(primitive_object, SimpleImputer):
primitive_object.set_params(strategy='most_frequent')
primitive_object.set_params(strategy='most_frequent', keep_empty_features=True)


class BaseBuilder:
Expand Down

0 comments on commit 7297a55

Please sign in to comment.