I am comparing different clustering methods. For example Agglomerative Clustering with K-means, predicting from a sample, etc.
I am in python and mostly using pandas and sklearn.
The issue I have, of course, is that the cluster number the observations are assigned are different for every algorithm and I get something similar to this:
I am doing it manually for 8 clusters, but if I had more clusters it's a nightmare.
I think the idea is to relabel the results based on how many of the observations have in common. At the moment is when comparing the same number of clusters which should be easier.
Thanks!



