Re: kmeans clustering

2019-09-16 Thread Pankaj Jangid
Sharan Basappa  writes:

> Can someone please help me to clarify the different between fit and
> predict functions of kmeans?
>
What is the significance of `predict' in K-means? It is an unsupervised
clustering algorithm. My intuition says that the cluster composition
itself might change if you add a new example and re-run K-means.

On the other hand if you don't want to change the cluster compositions
and just want to find a cluster for a new example then it is not
K-means. In that case it is Knearest classifier.

-- 
Pankaj Jangid
-- 
https://mail.python.org/mailman/listinfo/python-list


kmeans clustering

2019-09-15 Thread Sharan Basappa
Can someone please help me to clarify the different between fit and predict 
functions of kmeans?

-- 
https://mail.python.org/mailman/listinfo/python-list