Skip to content

fix: correct inverted warning message in pareto front plot#6498

Merged
c-bata merged 2 commits intooptuna:masterfrom
aerosta:fix/pareto-front-warning-message
Mar 10, 2026
Merged

fix: correct inverted warning message in pareto front plot#6498
c-bata merged 2 commits intooptuna:masterfrom
aerosta:fix/pareto-front-warning-message

Conversation

@aerosta
Copy link
Copy Markdown
Contributor

@aerosta aerosta commented Mar 8, 2026

Summary

The warning message in _get_pareto_front_info had the constraint and no-constraint strings swapped.

What was wrong

When all trials are infeasible (constraints enabled), the warning said "completed" instead of "completed and feasible". When there are no constraints and no trials at all, it said "completed and feasible" when it should just say "completed".

Fix

Swapped the ternary condition on line 230 of optuna/visualization/_pareto_front.py.

@aerosta aerosta force-pushed the fix/pareto-front-warning-message branch from 3dc39fd to 9c42b20 Compare March 8, 2026 03:11
@c-bata c-bata self-assigned this Mar 10, 2026
Copy link
Copy Markdown
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you for your contribution!

@c-bata c-bata added the enhancement Change that does not break compatibility and not affect public interfaces, but improves performance. label Mar 10, 2026
@c-bata c-bata added this to the v4.8.0 milestone Mar 10, 2026
@c-bata c-bata merged commit f9e546d into optuna:master Mar 10, 2026
14 checks passed
@aerosta
Copy link
Copy Markdown
Contributor Author

aerosta commented Mar 10, 2026

LGTM. Thank you for your contribution!

Thanks for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Change that does not break compatibility and not affect public interfaces, but improves performance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants