Skip to content

Commit

Permalink
Update comment to mention broad scope of target functions
Browse files Browse the repository at this point in the history
  • Loading branch information
xadrianzetx committed Aug 2, 2023
1 parent 4315b76 commit 4d7f407
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optuna/visualization/_contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ def _get_contour_subplot_info(

existing = z_values.get((x_i, y_i))
if existing is None or target is not None:
# In multi-objective case we don't know which objective was selected in target
# function therefore we don't know how to select the best objective value.
# When target function is present, we can't be sure what the z-value
# represents and therefore we don't know how to select the best one.
z_values[(x_i, y_i)] = value
else:
z_values[(x_i, y_i)] = (
Expand Down

0 comments on commit 4d7f407

Please sign in to comment.