Repository navigation
docs: clarify n_warmup_steps boundary in MedianPruner and PercentilePruner - #6733
Conversation
| this feature assumes that ``step`` starts at zero. | ||
| Pruning is disabled for the first ``n_warmup_steps`` reported steps (steps ``0`` to | ||
| ``n_warmup_steps - 1``); the earliest a trial can be pruned is at | ||
| ``step == n_warmup_steps``. This feature assumes that ``step`` starts at zero. |
|
Btw, could you, @vin0san , please include @francisco-aparicio as a contributor? Please run |
…cstring Co-authored-by: Francisco Aparício <[email protected]>
fd0ea8a to
a5f4682
Compare
Co-authored-by: Shuhei Watanabe <[email protected]>
Thank you, I would appreciate being mentioned as a contributor, best! |
Done! Added you as a co-author in the latest commit. 🙏 |
There was a problem hiding this comment.
Thank you, @vin0san and @francisco-aparicio :)
I will check the change again!
| n_warmup_steps: | ||
| Pruning is disabled until the trial exceeds the given number of step. Note that | ||
| this feature assumes that ``step`` starts at zero. | ||
| Pruning is disabled for the first ``n_warmup_steps`` reported steps (steps ``0`` to |
There was a problem hiding this comment.
Maybe this expression is confusing because step does not increase strictly by 1 per report.
Co-authored-by: Shuhei Watanabe <[email protected]>
Closes #6732
The docstring said "until the trial exceeds the given number of step" which implies
step > n_warmup_steps, but the implementation usesstep < n_warmup_steps, meaningpruning begins at
step == n_warmup_steps. Updated both_median.pyand_percentile.pyto make the boundary explicit.