Skip to content

Commit

Permalink
Fix Unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
franchuterivera committed Jun 1, 2021
1 parent e72c101 commit f88af24
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_hyperparameter_search_space(self,
raise ValueError("no coalescer found, please add a coalescer")

if default is None:
defaults = ['MinorityCoalescer', 'NoCoalescer']
defaults = ['NoCoalescer', 'MinorityCoalescer']
for default_ in defaults:
if default_ in available_preprocessors:
if include is not None and default_ not in include:
Expand Down Expand Up @@ -111,8 +111,10 @@ def get_hyperparameter_search_space(self,

# add only child hyperparameters of early_preprocessor choices
for name in preprocessor.choices:
updates = self._get_search_space_updates(prefix=name)
preprocessor_configuration_space = available_preprocessors[name].\
get_hyperparameter_search_space(dataset_properties)
get_hyperparameter_search_space(dataset_properties,
**updates)
parent_hyperparameter = {'parent': preprocessor, 'value': name}
cs.add_configuration_space(name, preprocessor_configuration_space,
parent_hyperparameter=parent_hyperparameter)
Expand Down

0 comments on commit f88af24

Please sign in to comment.