Skip to content

Commit 27e2a8f

Browse files
committed
Pushing the docs to dev/ for branch: master, commit d01cdc204ee4972307aca4cc1e1b1e5e6347cc70
1 parent 55ad8db commit 27e2a8f

File tree

1,034 files changed

+3126
-3113
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,034 files changed

+3126
-3113
lines changed
1 Byte
Binary file not shown.
1 Byte
Binary file not shown.

dev/_downloads/plot_face_segmentation.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
"outputs": [],
4646
"source": [
47-
"for assign_labels in ('kmeans', 'discretize'):\n t0 = time.time()\n labels = spectral_clustering(graph, n_clusters=N_REGIONS,\n assign_labels=assign_labels, random_state=1)\n t1 = time.time()\n labels = labels.reshape(face.shape)\n\n plt.figure(figsize=(5, 5))\n plt.imshow(face, cmap=plt.cm.gray)\n for l in range(N_REGIONS):\n plt.contour(labels == l, contours=1,\n colors=[plt.cm.spectral(l / float(N_REGIONS))])\n plt.xticks(())\n plt.yticks(())\n title = 'Spectral clustering: %s, %.2fs' % (assign_labels, (t1 - t0))\n print(title)\n plt.title(title)\nplt.show()"
47+
"for assign_labels in ('kmeans', 'discretize'):\n t0 = time.time()\n labels = spectral_clustering(graph, n_clusters=N_REGIONS,\n assign_labels=assign_labels, random_state=42)\n t1 = time.time()\n labels = labels.reshape(face.shape)\n\n plt.figure(figsize=(5, 5))\n plt.imshow(face, cmap=plt.cm.gray)\n for l in range(N_REGIONS):\n plt.contour(labels == l, contours=1,\n colors=[plt.cm.spectral(l / float(N_REGIONS))])\n plt.xticks(())\n plt.yticks(())\n title = 'Spectral clustering: %s, %.2fs' % (assign_labels, (t1 - t0))\n print(title)\n plt.title(title)\nplt.show()"
4848
]
4949
}
5050
],

dev/_downloads/plot_face_segmentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
for assign_labels in ('kmeans', 'discretize'):
6464
t0 = time.time()
6565
labels = spectral_clustering(graph, n_clusters=N_REGIONS,
66-
assign_labels=assign_labels, random_state=1)
66+
assign_labels=assign_labels, random_state=42)
6767
t1 = time.time()
6868
labels = labels.reshape(face.shape)
6969

dev/_downloads/scikit-learn-docs.pdf

-82.4 KB
Binary file not shown.
-328 Bytes
-328 Bytes
-430 Bytes
-430 Bytes
-674 Bytes

0 commit comments

Comments
 (0)