8000 CLN Remove unnecessary code from DecisionBoundaryDisplay (#23192) · scikit-learn/scikit-learn@f5044bd · GitHub
[go: up one dir, main page]

Skip to content

Commit f5044bd

Browse files
authored
CLN Remove unnecessary code from DecisionBoundaryDisplay (#23192)
1 parent 0bf99b8 commit f5044bd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

sklearn/inspection/_plot/decision_boundary.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -311,14 +311,10 @@ def from_estimator(
311311
# TODO: Support pos_label
312312
response = response[:, 1]
313313

314-
if xlabel is not None:
315-
xlabel = xlabel
316-
else:
314+
if xlabel is None:
317315
xlabel = X.columns[0] if hasattr(X, "columns") else ""
318316

319-
if ylabel is not None:
320-
ylabel = ylabel
321-
else:
317+
if ylabel is None:
322318
ylabel = X.columns[1] if hasattr(X, "columns") else ""
323319

324320
display = DecisionBoundaryDisplay(

0 commit comments

Comments
 (0)
0