Repository navigation
Extend parallel coordinate plots to conditional, multi-objective, and constrained studies - #6763
Conversation
|
Sorry for the late review. I have a couple of suggestions. First, would it make sense to rename Second, would it be better for I tried a small refactor along these lines here: sawa3030@ace083e I’d appreciate it if you could take a look! |
|
@gen740 Could you review this PR? |
…olor_values, and draw_order Rename dim_objective to dims_objectives holding all objective dimensions, and always populate color_values and draw_order in _get_parallel_coordinate_info so the plotting functions only consume prepared data. Co-authored-by: sawa3030 <[email protected]> Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Thank you for your review. Updated. |
gen740
left a comment
There was a problem hiding this comment.
Thank you for your PR! I left several comments on the tests.
|
@gen740 Thank you for your suggestions. All comments have been applied. |
sawa3030
left a comment
There was a problem hiding this comment.
Thanks for the update. I left a few minor comments. PTAL.
| from optuna.visualization._plotly_imports import _imports | ||
| from optuna.visualization._utils import _check_plot_args | ||
| from optuna.visualization._utils import _filter_nonfinite | ||
| from optuna.visualization._utils import _get_skipped_trial_numbers |
There was a problem hiding this comment.
_get_skipped_trial_numbers does not appear to be referenced anywhere else in the codebase, so we can probably delete it.
There was a problem hiding this comment.
Good catch. I removed the function.
Co-authored-by: Eri Sawada <[email protected]>
Motivation & Description of the changes
The existing parallel coordinate plot has limited support for conditional search spaces, multi-objective studies, and constrained optimization.
This PR extends both the Plotly and Matplotlib implementations to visualize these studies consistently.
Support conditional parameters.
Nonelabel.None, it is displayed asNone (value)to distinguish it from a missing value.Support multi-objective studies without requiring
target.Support constrained studies.
Use Scatter traces for the Plotly implementation.
go.Parcoords.Plotly

Matplotlib
