Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9705b75

Browse filesBrowse files
committed
Formatted plot_separating_hyperplane_margin.py with Black
1 parent e68d28a commit 9705b75
Copy full SHA for 9705b75

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎examples/svm/plot_separating_hyperplane_margin.py

Copy file name to clipboardExpand all lines: examples/svm/plot_separating_hyperplane_margin.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
clf.fit(X, y)
3737

3838
plt.subplot(1, 3, i)
39-
plt.scatter(X[:, 0], X[:, 1], c=y, s=30,
40-
cmap=plt.cm.Paired, edgecolors="k")
39+
plt.scatter(X[:, 0], X[:, 1], c=y, s=30, cmap=plt.cm.Paired, edgecolors="k")
4140

4241
# plot the decision function
4342
ax = plt.gca()
@@ -48,7 +47,8 @@
4847
colors="k",
4948
levels=[-1, 0, 1],
5049
alpha=0.5,
51-
linestyles=["--", "-", "--"], ax=ax
50+
linestyles=["--", "-", "--"],
51+
ax=ax,
5252
)
5353

5454
# plot support vectors
@@ -59,7 +59,7 @@
5959
linewidth=1.5,
6060
facecolors="none",
6161
edgecolors="r",
62-
label="Support Vectors"
62+
label="Support Vectors",
6363
)
6464

6565
plt.title(f"SVM Decision Boundary (C={C_val})")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.