Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 394 Bytes

README.md

File metadata and controls

23 lines (12 loc) · 394 Bytes

K-mean-pp_clustering

K-mean++ clustering

An implementaion of K-mean clustering:

function: k_mean_pp(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, ......]