From 76053c72469d7984b784bb81d8df4b2ec6290e0e Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Fri, 21 Dec 2018 06:50:24 +0200 Subject: [PATCH] Add K-Means. --- homemade/k_means/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homemade/k_means/README.md b/homemade/k_means/README.md index cf4d501..6062dd6 100644 --- a/homemade/k_means/README.md +++ b/homemade/k_means/README.md @@ -1,5 +1,11 @@ # K-Means Algorithm +## Jupyter Demos + +▶️ [Demo | K-means Algorithm](https://nbviewer.jupyter.org/github/trekhleb/homemade-machine-learning/blob/master/notebooks/k_means/k_means_demo.ipynb) - split Iris flowers into clusters based on `petal_length` and `petal_width` + +## Definition + **K-means clustering** aims to partition n observations into _K_ clusters in which each observation belongs to the cluster with the nearest mean, serving as a prototype of the cluster. The result of a cluster analysis shown below as the coloring of the squares into three clusters.