HyperOptSearch (and SuggestionAlgorithms) restore with empty generator and empty live_trials
Currently, the trial generator is not part of the saved state for HyperOptSearch. #5773 adds save/restore of the search algorithm to the trial runner. However, upon resuming an experiment the trial runner skips adding an experiment to the search algorithm. The trial generator is normally created in the call to add_experiment (this is the case more generally for SuggestionAlgorithms) and so the restored search algorithm has an empty generator and generates no further trials.
Not sure what the best solution is, maybe also call add_experiment from trial runner for resumed trials and have the generator creation depend on the state of the search alg?
Also, HyperOptSearch maintains its own live_trial_mapping, but this is not part of the saved state, leading it to suggest too many trials on resuming an experiment.
cc @hershg
Hi, I'm a bot from the Ray team :)
To help human contributors to focus on more relevant issues, I will automatically add the stale label to issues that have had no activity for more than 4 months.
If there is no further activity in the 14 days, the issue will be closed!
- If you'd like to keep the issue open, just leave any comment, and the stale label will be removed!
- If you'd like to get more attention to the issue, please tag one of Ray's contributors.
You can always ask for help on our discussion forum or Ray's public slack channel.
This is now supported on the latest Ray release.