[scikit-learn] Getting the indexes of the data points after clustering using Kmeans

prince gosavi princegosavi12 at gmail.com
Wed Feb 21 05:14:03 EST 2018

I have applied Kmeans clustering using the scikit library from


 After applying the algorithm.I would like to get the data points in the
clusters so as to further use them to apply a model.


gives me distance array of all the data points.

Is there any way around this available in scikit so as to get the data
points id/index.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20180221/41a4b199/attachment.html>

More information about the scikit-learn mailing list