Repository navigation
Updated documentation related to arguments of PatientPruner and WilcoxonPruner - #6944
Merged
Merged
Conversation
y0z
reviewed
Nov 4, 2026
y0z
reviewed
Nov 4, 2026
y0z
approved these changes
Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation:
I have read issue no. #6899 . The updates refine the documentation related to these two arguments for better developer experience.
Description of the changes :
For PatientPruner (optuna/pruners/_patient.py):
patience: Pruning is disabled until the objective doesn't improve forpatienceconsecutive reported steps. Note that patience counts the number of reported intermediate values sequentially, rather than evaluating gaps between step numbers; steps without a reported value are skipped and don't count toward patience.For WilcoxonPruner (optuna/pruners/_wilcoxon.py):
n_startup_steps: The minimum number of paired observations required before pruning. Only step numbers reported in both the current trial and the best trial count towardn_startup_steps. Gaps in step numbering and observations reported in only one of the trials do not count.Thank you so much for your time.