Skip to content

deepakrana47/K-mean-clustering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K-mean-clustering

K-mean clustering

An implementaion of K-mean clustering:

function: k_mean(x, k)

Takes:

x: input data points in form of list of data point

eg: x = [[12,34,21], [23,34,23], ...... ]

k: number of cluster for dividing data points

eg: k=3

Returns:

cluster: contain assigned cluser for every data point

eg: cluster = [1, 0 ,2, ......]