Skip to content

Commit

Permalink
Add K-Means.
Browse files Browse the repository at this point in the history
  • Loading branch information
trekhleb committed Dec 21, 2018
1 parent b8c3e98 commit 76053c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions homemade/k_means/README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 76053c7

Please sign in to comment.