Skip to content

Commit 780c9b9

Browse files
committed
DOC: voronoi + kmeans picture
1 parent 10c690f commit 780c9b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/modules/clustering.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ and the new centroids is the inertia and the algorithm repeats these last two
132132
steps until this value is less than a threshold. In other words, it repeats
133133
until the centroids do not move significantly.
134134

135+
.. image:: ../auto_examples/cluster/images/plot_kmeans_digits_1.png
136+
:target: ../auto_examples/cluster/plot_kmeans_digits.html
137+
:align: right
138+
:scale: 35
139+
135140
The algorithm can be identified through the concept of `Voronoi diagrams
136141
<https://en.wikipedia.org/wiki/Voronoi_diagram>`_. First the Voronoi diagram
137142
of the points is calculated using the current centroids. Each segment in the

0 commit comments

Comments
 (0)