Open RNarayan73 opened 2 years ago
Hey @RNarayan73, this docs page should help - https://docs.ray.io/en/latest/tune/tutorials/tune-search-spaces.html#tune-custom-search. Let me know if you have any more questions :)
Thanks for the steer @Yard1. So far, all my code has been entirely SKLearn compatible which allows me to reuse the same workflows for various HP search techniques such as BayesSearchCV, TuneSearchCV, OptunaSearchCV, EvolutionarySearchCV etc. with minimal rework. If I went down the route suggested in the help doc, and coded for the Ray Tune API, could it be used with TuneSearchCV in SKLearn as well?
Yes, you should be able to use any tune.run
compatible search space with TuneSearchCV
. If that doesn't work, let us know - we'll fix :)
Hello, I am trying to assign a parameter search space to param_distributions that is a list of distinct search spaces. This is to enable me to search through multiple dimension reduction and feature selection algorithms and also search for optimal parameters for them. As a trivial example, if I would like to use a pipeline with a structure like this:
where dim_red has search spaces like this:
encode and classify steps both have their own set of search spaces, but not elaborated for brevity.
I would need to create a list of dicts with all valid combinations of the search spaces for each of the dim_red algorithms
However, TuneSearchCV doesn't accept such a list of dicts to represent the search spaces, throwing up an error as in the title. BaySearchSV works just fine.
I have the following Questions: 1) Is there a way to use TuneSearchCV to search through all the search spaces described above? 2) Is there an alternative way to represent the search spaces that SKLearn accepts that I am ignorant about?
Any steer would be appreciated.
RNarayan73