Skip to content

Commit d087946

Browse files
committed
Pushing the docs to dev/ for branch: main, commit 14684bbae31918a394d61c75c23edee42d6c9761
1 parent a5091b1 commit d087946

File tree

1,218 files changed

+4172
-4169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,218 files changed

+4172
-4169
lines changed
Binary file not shown.

dev/_downloads/43f17c8225b2c8e15e22a7edf7adb8b5/plot_mean_shift.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
"outputs": [],
8282
"source": [
83-
"import matplotlib.pyplot as plt\nfrom itertools import cycle\n\nplt.figure(1)\nplt.clf()\n\ncolors = cycle(\"bgrcmyk\")\nfor k, col in zip(range(n_clusters_), colors):\n my_members = labels == k\n cluster_center = cluster_centers[k]\n plt.plot(X[my_members, 0], X[my_members, 1], col + \".\")\n plt.plot(\n cluster_center[0],\n cluster_center[1],\n \"o\",\n markerfacecolor=col,\n markeredgecolor=\"k\",\n markersize=14,\n )\nplt.title(\"Estimated number of clusters: %d\" % n_clusters_)\nplt.show()"
83+
"import matplotlib.pyplot as plt\n\nplt.figure(1)\nplt.clf()\n\ncolors = [\"#dede00\", \"#377eb8\", \"#f781bf\"]\nmarkers = [\"x\", \"o\", \"^\"]\n\nfor k, col in zip(range(n_clusters_), colors):\n my_members = labels == k\n cluster_center = cluster_centers[k]\n plt.plot(X[my_members, 0], X[my_members, 1], markers[k], color=col)\n plt.plot(\n cluster_center[0],\n cluster_center[1],\n markers[k],\n markerfacecolor=col,\n markeredgecolor=\"k\",\n markersize=14,\n )\nplt.title(\"Estimated number of clusters: %d\" % n_clusters_)\nplt.show()"
8484
]
8585
}
8686
],

dev/_downloads/585914164dc34984e397f8d3d61849a5/plot_mean_shift.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,21 @@
4242
# Plot result
4343
# -----------
4444
import matplotlib.pyplot as plt
45-
from itertools import cycle
4645

4746
plt.figure(1)
4847
plt.clf()
4948

50-
colors = cycle("bgrcmyk")
49+
colors = ["#dede00", "#377eb8", "#f781bf"]
50+
markers = ["x", "o", "^"]
51+
5152
for k, col in zip(range(n_clusters_), colors):
5253
my_members = labels == k
5354
cluster_center = cluster_centers[k]
54-
plt.plot(X[my_members, 0], X[my_members, 1], col + ".")
55+
plt.plot(X[my_members, 0], X[my_members, 1], markers[k], color=col)
5556
plt.plot(
5657
cluster_center[0],
5758
cluster_center[1],
58-
"o",
59+
markers[k],
5960
markerfacecolor=col,
6061
markeredgecolor="k",
6162
markersize=14,
Binary file not shown.

dev/_downloads/scikit-learn-docs.zip

-6.78 KB
Binary file not shown.
-4 Bytes
-14 Bytes
9 Bytes
-111 Bytes
-1 Bytes

0 commit comments

Comments
 (0)