Skip to content

Updated documentation related to arguments of PatientPruner and WilcoxonPruner - #6944

Merged
y0z merged 3 commits into
optuna:masterfrom
bidyut18:master
Nov 4, 2026
Merged

y0z merged 3 commits into
optuna:masterfrom
bidyut18:master

Conversation

@bidyut18

@bidyut18 bidyut18 commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

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 :

  1. For PatientPruner (optuna/pruners/_patient.py):
    patience: Pruning is disabled until the objective doesn't improve for patience consecutive 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.

  2. 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 toward n_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.

Comment thread optuna/pruners/_patient.py Resolved
Comment thread optuna/pruners/_wilcoxon.py Resolved
@y0z y0z added the document Documentation related. label Nov 4, 2026
@y0z
y0z merged commit 50c5b87 into optuna:master Nov 4, 2026
11 checks passed
@y0z y0z added this to the v5.1.0 milestone Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

document Documentation related.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants