Fix visualization.matplotlib.plot_optimization_history for multi-objective#2532
Fix visualization.matplotlib.plot_optimization_history for multi-objective#2532toshihikoyanase merged 2 commits intooptuna:masterfrom
visualization.matplotlib.plot_optimization_history for multi-objective#2532Conversation
matplotlib.plot_optimization_history for multi-objectivevisualization.matplotlib.plot_optimization_history for multi-objective
Codecov Report
@@ Coverage Diff @@
## master #2532 +/- ##
=======================================
Coverage 89.80% 89.80%
=======================================
Files 135 135
Lines 11330 11330
=======================================
Hits 10175 10175
Misses 1155 1155
Continue to review full report at Codecov.
|
|
By the way, it might be great to add a multi-objective example or more description for the |
|
Any update? :) |
|
Sorry for the late reply. I've just started to review this PR. |
HideakiImamura
left a comment
There was a problem hiding this comment.
Thanks for the PR. In the else case, I think we will not get the legend, is this what we expect?
|
@HideakiImamura Thank you for your feedback! Yes, since Plotly's function also doesn't show the legend. |
HideakiImamura
left a comment
There was a problem hiding this comment.
Sure! I confirmed the behavior by seeing visualization/plot_optimimzation_history. LGTM!
toshihikoyanase
left a comment
There was a problem hiding this comment.
Thank you for your PR. I confirmed that the change resolved #2531. I also confirmed that it does not affect plots for single objective optimization. LGTM!
@keisuke-umezawa Let me review this PR since we'll freeze the code for v2.7 today.

Motivation
See #2531
Description of the changes
Unify the logic to Plotly's one.
Results
Matplotlib
Plotly as reference