Fix improper stopping with the combination of GridSampler and HyperbandPruner#2353
Fix improper stopping with the combination of GridSampler and HyperbandPruner#2353HideakiImamura merged 3 commits intooptuna:masterfrom
GridSampler and HyperbandPruner#2353Conversation
Codecov Report
@@ Coverage Diff @@
## master #2353 +/- ##
==========================================
+ Coverage 92.22% 92.23% +0.01%
==========================================
Files 125 125
Lines 10344 10385 +41
==========================================
+ Hits 9540 9579 +39
- Misses 804 806 +2
Continue to review full report at Codecov.
|
|
@toshihikoyanase Could you review this PR? |
HideakiImamura
left a comment
There was a problem hiding this comment.
Look solid. I have a minor comment on the code comment. Please take a look.
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
toshihikoyanase
left a comment
There was a problem hiding this comment.
Thank you for fixing the bug. The code looks solid, but I added some comments on the tests.
Co-authored-by: Toshihiko Yanase <toshihiko.yanase@gmail.com>
|
Thank you for your reviews. I applied your suggestions. PTAL. |
toshihikoyanase
left a comment
There was a problem hiding this comment.
Thank you for your update. Looks good to me.
HideakiImamura
left a comment
There was a problem hiding this comment.
Thanks for the quick fix! LGTM!
Motivation
Resolve #2327
Description of the changes
When we use
HyperbandPruner,study.trialsis filtered bybracket_id. This causes improper stopping bug forGridSamplerbecause it cannot check all nodes are visited usingstudy.trials.This PR adds
stopmethod for_BracketStudyand checks visited nodes usingstudy._storage.get_all_trials.