In hyperparameter searches a common problem is an algorithm that selects combos of parameters that may be:
Invalid for the estimator being used
Improbable for the parameters given what is known for the parameters beforehand
One fix for EaSearchCV (and RandomizedSearchCV) would be to have the __init__ arguments allow:
post_select: Function taking the next parameter set as an argument, returning False/None if the next parameter set should be skipped, else a dict that can go to estimator.set_params()
TODO for this issue:
Create the post_select arg for RandomizedSearch, EaSearchCV
Notebook showing how to use post_select in EaSearchCV
Documentation in notebook/elsewhere linking several ways of controlling how combinations of parameters may be avoided / favored, including options already in scikit-learn with ParameterGrid
In hyperparameter searches a common problem is an algorithm that selects combos of parameters that may be:
One fix for EaSearchCV (and RandomizedSearchCV) would be to have the
__init__
arguments allow:post_select
: Function taking the next parameter set as an argument, returning False/None if the next parameter set should be skipped, else a dict that can go toestimator.set_params()
TODO for this issue:
post_select
arg for RandomizedSearch, EaSearchCV