[scikit-learn] Using KMeans cluster labels in KNN
prince gosavi
princegosavi12 at gmail.com
Mon Mar 12 02:55:17 EDT 2018
Hi,
I have generated clusters using the KMeans algorithm and would like to use
the labels of the model in the KNN.
I don't have the implementation idea but I can visualize it as
KNNmodel = KNN.fit(X, KMeansModel.labels_)
Such that the KNN will predict the cluster the new point belong to.
--
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20180312/8e4866a3/attachment.html>
More information about the scikit-learn
mailing list