Skip to content

FAXTROT/k_means

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Illustration of how K-means algorithm works

Overview

Data is of point type with 2 coordinates x & y. Randomly generated.

How to run

  1. pip install -r requirements.txt

  2. python main.py

Sample output

Init Data

Putting centroids at their starting positions randomly

Epoch 1

Epoch 2

Epoch 3

Epoch 4

Epoch 5

About

Simple k-means algorithm in 2D

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages