BinRoot / TensorFlow-Book

Accompanying source code for Machine Learning with TensorFlow. Refer to the book for step-by-step explanations.
http://www.tensorflowbook.com
MIT License
4.45k stars 1.21k forks source link

Clustering with self-organizing map #11

Closed amit2103 closed 7 years ago

amit2103 commented 7 years ago

Hi,

I bought the MEAP book and its great. We are trying to cluster some values with the algorithm. We would like to get the label of each input to a cluster. So if there are 10 clusters and an input vector v, we would like to know which cluster does V belong to . Can you please let me know what are the changes required?

BinRoot commented 7 years ago

If you already know the number of clusters, a safe bet is to use K-means instead. Otherwise, this article explains a couple ways to find clusters in a SOM.