deepakrana47 / K-mean-clustering

K-mean clustering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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, ......]

About

K-mean clustering

License:Apache License 2.0


Languages

Language:Python 100.0%