I have a hyperparameter tuple and I would like to supply hyperopt off with a good starting choice like so:
from ray.tune.search.hyperopt import HyperOptSearch
search_space = {"num_hidden": tune.choice([ (250, 250), (500, 500)])}
current_best_params = [{'num_hidden': (250, 250),}]
hyperopt_search = HyperOptSearch(
metric="mean_loss", mode="min",
points_to_evaluate=current_best_params)
However, when fitting the tuner, it rejects my search with this error which I am unclear about debugging:
Did not find category with value `(250, 250)` in hyperopt parameter `num_hidden`. Please make sure the specified category is valid.
This search space will work. The tuple is ok, but anything more than a singular value breaks it:
search_space = {"num_hidden": tune.choice([ (1), (200, 500)])}
current_best_params = [{'num_hidden': (1),}]
It would be nice to send tuples as choices instead of setting up conditional hyperparameter searches that selects the second part of the tuple given what the first is.