Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions optuna/visualization/matplotlib/_contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,12 @@ def _filter_missing_values(
) -> tuple[list[str | float], list[str | float]]:
x_values = []
y_values = []
append_x = x_values.append
append_y = y_values.append
for x_value, y_value in zip(xaxis.values, yaxis.values):
if x_value is not None and y_value is not None:
x_values.append(x_value)
y_values.append(y_value)
append_x(x_value)
append_y(y_value)
return x_values, y_values


Expand Down