Skip to content

Commit

Permalink
Add links for code examples for K-Means clustering
Browse files Browse the repository at this point in the history
  • Loading branch information
trekhleb committed Feb 20, 2023
1 parent af08253 commit 5a41865
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/algorithms/ml/k-means/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ _Image source: [Wikipedia](https://en.wikipedia.org/wiki/K-means_clustering)_

The centroids are moving continuously in order to create better distinction between the different set of data points. As we can see, after a few iterations, the difference in centroids is quite low between iterations. For example between iterations `13` and `14` the difference is quite small because there the optimizer is tuning boundary cases.

## Code Examples

- [kMeans.js](./kMeans.js)
- [kMeans.test.js](./__test__/kMeans.test.js) (test cases)

## References

- [k-Means neighbors algorithm on Wikipedia](https://en.wikipedia.org/wiki/K-means_clustering)

0 comments on commit 5a41865

Please sign in to comment.