Skip to content

Commit 2db6292

Browse files
committed
Pushing the docs to dev/ for branch: master, commit 25917bae33caecc139e14cba4488581d80e64545
1 parent 79446cc commit 2db6292

File tree

929 files changed

+2823
-2823
lines changed

Some content is hidden

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

929 files changed

+2823
-2823
lines changed
23 Bytes
Binary file not shown.
23 Bytes
Binary file not shown.

dev/_downloads/plot_dbscan.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\n\n# Black removed and is used for noise instead.\nunique_labels = set(labels)\ncolors = [plt.cm.Spectral(each)\n for each in np.linspace(0, 1, len(unique_labels))]\nfor k, col in zip(unique_labels, colors):\n if k == -1:\n # Black used for noise.\n col = 'k'\n\n class_member_mask = (labels == k)\n\n xy = X[class_member_mask & core_samples_mask]\n plt.plot(xy[:, 0], xy[:, 1], 'o', markerfacecolor=col,\n markeredgecolor='k', markersize=14)\n\n xy = X[class_member_mask & ~core_samples_mask]\n plt.plot(xy[:, 0], xy[:, 1], 'o', markerfacecolor=col,\n markeredgecolor='k', markersize=6)\n\nplt.title('Estimated number of clusters: %d' % n_clusters_)\nplt.show()"
83+
"import matplotlib.pyplot as plt\n\n# Black removed and is used for noise instead.\nunique_labels = set(labels)\ncolors = [plt.cm.Spectral(each)\n for each in np.linspace(0, 1, len(unique_labels))]\nfor k, col in zip(unique_labels, colors):\n if k == -1:\n # Black used for noise.\n col = [0, 0, 0, 1]\n\n class_member_mask = (labels == k)\n\n xy = X[class_member_mask & core_samples_mask]\n plt.plot(xy[:, 0], xy[:, 1], 'o', markerfacecolor=tuple(col),\n markeredgecolor='k', markersize=14)\n\n xy = X[class_member_mask & ~core_samples_mask]\n plt.plot(xy[:, 0], xy[:, 1], 'o', markerfacecolor=tuple(col),\n markeredgecolor='k', markersize=6)\n\nplt.title('Estimated number of clusters: %d' % n_clusters_)\nplt.show()"
8484
]
8585
}
8686
],

dev/_downloads/plot_dbscan.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@
5757
for k, col in zip(unique_labels, colors):
5858
if k == -1:
5959
# Black used for noise.
60-
col = 'k'
60+
col = [0, 0, 0, 1]
6161

6262
class_member_mask = (labels == k)
6363

6464
xy = X[class_member_mask & core_samples_mask]
65-
plt.plot(xy[:, 0], xy[:, 1], 'o', markerfacecolor=col,
65+
plt.plot(xy[:, 0], xy[:, 1], 'o', markerfacecolor=tuple(col),
6666
markeredgecolor='k', markersize=14)
6767

6868
xy = X[class_member_mask & ~core_samples_mask]
69-
plt.plot(xy[:, 0], xy[:, 1], 'o', markerfacecolor=col,
69+
plt.plot(xy[:, 0], xy[:, 1], 'o', markerfacecolor=tuple(col),
7070
markeredgecolor='k', markersize=6)
7171

7272
plt.title('Estimated number of clusters: %d' % n_clusters_)

dev/_downloads/scikit-learn-docs.pdf

2.54 KB
Binary file not shown.
133 Bytes
133 Bytes
116 Bytes
116 Bytes
2 Bytes

0 commit comments

Comments
 (0)