You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/clustering.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -358,7 +358,7 @@ in {numref}`toy-example-clus1-center`
358
358
:figwidth: 700px
359
359
:name: toy-example-clus1-center
360
360
361
-
Cluster 1 from the penguin_data data set example. Observations are in blue, with the cluster center highlighted in red.
361
+
Cluster 1 from the `penguin_data` data set example. Observations are in blue, with the cluster center highlighted in orange.
362
362
:::
363
363
364
364
```{code-cell} ipython3
@@ -400,7 +400,7 @@ These distances are denoted by lines in {numref}`toy-example-clus1-dists` for th
400
400
:figwidth: 700px
401
401
:name: toy-example-clus1-dists
402
402
403
-
Cluster 1 from the penguin_data data set example. Observations are in blue, with the cluster center highlighted in red. The distances from the observations to the cluster center are represented as black lines.
403
+
Cluster 1 from the `penguin_data` data set example. Observations are in blue, with the cluster center highlighted in orange. The distances from the observations to the cluster center are represented as black lines.
404
404
:::
405
405
406
406
```{code-cell} ipython3
@@ -450,7 +450,7 @@ These distances are denoted by black lines in
450
450
:figwidth: 700px
451
451
:name: toy-example-all-clus-dists
452
452
453
-
All clusters from the penguin_data data set example. Observations are in orange, blue, and yellow with the cluster center highlighted in red. The distances from the observations to each of the respective cluster centers are represented as black lines.
453
+
All clusters from the `penguin_data` data set example. Observations are in blue, orange, and red with the cluster center highlighted in orange. The distances from the observations to each of the respective cluster centers are represented as black lines.
454
454
:::
455
455
456
456
+++
@@ -584,7 +584,7 @@ and the right column depicts the reassignment of data to clusters.
584
584
:figwidth: 700px
585
585
:name: toy-kmeans-iter-1
586
586
587
-
First three iterations of K-means clustering on the penguin_data example data set. Each pair of plots corresponds to an iteration. Within the pair, the first plot depicts the center update, and the second plot depicts the reassignment of data to clusters. Cluster centers are indicated by larger points that are outlined in black.
587
+
First three iterations of K-means clustering on the `penguin_data` example data set. Each pair of plots corresponds to an iteration. Within the pair, the first plot depicts the center update, and the second plot depicts the reassignment of data to clusters. Cluster centers are indicated by larger points that are outlined in black.
First five iterations of K-means clustering on the penguin_data example data set with a poor random initialization. Each pair of plots corresponds to an iteration. Within the pair, the first plot depicts the center update, and the second plot depicts the reassignment of data to clusters. Cluster centers are indicated by larger points that are outlined in black.
665
+
First five iterations of K-means clustering on the `penguin_data` example data set with a poor random initialization. Each pair of plots corresponds to an iteration. Within the pair, the first plot depicts the center update, and the second plot depicts the reassignment of data to clusters. Cluster centers are indicated by larger points that are outlined in black.
666
666
:::
667
667
668
668
This looks like a relatively bad clustering of the data, but K-means cannot improve it.
0 commit comments