reordering cluster numbers for correct correspondence

后端 未结 2 802
借酒劲吻你
借酒劲吻你 2020-12-21 10:27

I have a dataset that I clustered using two different clustering algorithms. The results are about the same, but the cluster numbers are permuted. Now for displaying the col

2条回答
  •  佛祖请我去吃肉
    2020-12-21 11:16

    The most well-known algorithm for finding the optimum matching is the hungarian method.

    Because it cannot be explained in a few sentences, I have to refer you to a book of your choice, or Wikipedia article "Hungarian algorithm".

    You can probably get good results (even perfect if the difference is indeed tiny) by simply picking the maximum of the correspondence matrix and then removing that row and column.

提交回复
热议问题