auto-sklearn icon indicating copy to clipboard operation
auto-sklearn copied to clipboard

Initialization of hyperparameter search space fails when the first preprocessor cannot be used with given estimators

Open teresaconc opened this issue 6 years ago • 4 comments

Initialization of hyperparameter search space fails when the first preprocessor method can not be used with none of the estimators.

Example: Using in the fit method:

 include_preprocessors = ['kernel_pca','select_rates']
 include_estimators = ['decision_tree','random_forest']

an error is raised: "Cannot find a legal default configuration." in _get_hyperparameter_search_space: line 216. This raises an error because kernel_pca can not be used with neither decision_tree nor random_forest.

However, if I reverse the include_preprocessors list: _include_preprocessors_ = ['select_rates', 'kernel_pca'] The program does not exit and the fit method is successful. It does not uses 'kernel_pca' but it does search for models with 'select_rates'

teresaconc avatar Feb 06 '19 16:02 teresaconc

Indeed, this is an issue. Ideally, one would check every combination of preprocessor and classifier and then choose a legal one if possible. Would you like to work on a fix for this?

mfeurer avatar Feb 11 '19 18:02 mfeurer

I haven't had time to look into this. But will hopefully do it soon

teresaconc avatar Feb 28 '19 15:02 teresaconc

That would be great!

mfeurer avatar Mar 04 '19 10:03 mfeurer

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs for the next 7 days. Thank you for your contributions.

github-actions[bot] avatar May 05 '21 01:05 github-actions[bot]