Skip to content

Commit f88af24

Browse files
Fix Unit test
1 parent e72c101 commit f88af24

File tree

1 file changed

+4
-2
lines changed
  • autoPyTorch/pipeline/components/preprocessing/tabular_preprocessing/coalescer

1 file changed

+4
-2
lines changed

autoPyTorch/pipeline/components/preprocessing/tabular_preprocessing/coalescer/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def get_hyperparameter_search_space(self,
6565
raise ValueError("no coalescer found, please add a coalescer")
6666

6767
if default is None:
68-
defaults = ['MinorityCoalescer', 'NoCoalescer']
68+
defaults = ['NoCoalescer', 'MinorityCoalescer']
6969
for default_ in defaults:
7070
if default_ in available_preprocessors:
7171
if include is not None and default_ not in include:
@@ -111,8 +111,10 @@ def get_hyperparameter_search_space(self,
111111

112112
# add only child hyperparameters of early_preprocessor choices
113113
for name in preprocessor.choices:
114+
updates = self._get_search_space_updates(prefix=name)
114115
preprocessor_configuration_space = available_preprocessors[name].\
115-
get_hyperparameter_search_space(dataset_properties)
116+
get_hyperparameter_search_space(dataset_properties,
117+
**updates)
116118
parent_hyperparameter = {'parent': preprocessor, 'value': name}
117119
cs.add_configuration_space(name, preprocessor_configuration_space,
118120
parent_hyperparameter=parent_hyperparameter)

0 commit comments

Comments
 (0)