An open API service indexing awesome lists of open source software.

https://github.com/tugot17/k-means-algorithm-from-scratch

The K-Means algorithm, written from scratch using the Python programming language
https://github.com/tugot17/k-means-algorithm-from-scratch

from-scratch k-means-clustering k-means-implementation-in-python kmeans-algorithm

Last synced: 7 months ago
JSON representation

The K-Means algorithm, written from scratch using the Python programming language

Awesome Lists containing this project

README

        

# K-Means-Algorithm-From-Scratch
The K-Means algorithm, written from scratch using the Python programming language. The main jupiter notebook shows how to write k-means from scratch and shows an example application - reducing the number of colors.

drawing

## Getting Started

The main file is [K-means.ipynb](K-means.ipynb)

The code itself, without comments, can be found in the [k-means.py](k-means.py) file

## Image

Image used as example for color reduction was downloaded from [here](https://www.nationalgeographic.com/photography/photo-of-the-day/2012/1/elephants-queen-elizabeth-park-sartore/)

drawing

### Prerequisites
```
-numpy
-sklearn
-matplotlib
-cv2
```

## Authors
* [tugot17](https://github.com/tugot17)

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details