Fix the default value of max_resource to HyperbandPruner#1171
Fix the default value of max_resource to HyperbandPruner#1171hvy merged 21 commits intooptuna:masterfrom
max_resource to HyperbandPruner#1171Conversation
Codecov Report
@@ Coverage Diff @@
## master #1171 +/- ##
==========================================
+ Coverage 91.06% 91.21% +0.15%
==========================================
Files 142 142
Lines 12286 12307 +21
==========================================
+ Hits 11188 11226 +38
+ Misses 1098 1081 -17
Continue to review full report at Codecov.
|
crcrpar
left a comment
There was a problem hiding this comment.
Could you update the title?
max_resource now defaults to 80.
max_resource to HyperbandPrunermax_resource to HyperbandPruner
hvy
left a comment
There was a problem hiding this comment.
Thanks for the PR, this is a heuristic that simplifies the usage for many. I left some early comments!
There was a problem hiding this comment.
As we're delaying the initialization of the ASHA pruners, trial(s) used to determine the maximum resource won't take part in the promotion process since this trial won't have its system_attr updated with its rungs. Is this intentional? It might be nontrivial to fix though.
I also noticed that the guessed maximum resource could vary between processes in a distributed environment but this might be rare and could maybe be addressed separately. It's also an issue with the minimum resource guess in our ASHA. If my understanding is correct, I could create a separate issue addressing these problems (since they're quite similar).
|
@hvy Thank you for your insightful comments.
Yes, it is intentional. The trial(s) to determine
Yes, I totally agree with you. Both the current |
|
Sure, I'll create issues after merging this PR. |
hvy
left a comment
There was a problem hiding this comment.
I'd like to follow up this PR with issues described #1171 (comment) but changes otherwise LGTM!
Depends #1168
Motivation
It is difficult for users to determine the value of arguments for
HyperbandPruner. This PR aims to give the default value ofmax_resourcetoHyperbandPrunerDescription of the changes
autoformax_resourceofHyperbandPruner.max_resource = 'auto', the pruner waits for the completion of some trials and setmax_resource = the amount of resources those trials used.autoformax_resourceworks.