Dispersion-based-Clustering icon indicating copy to clipboard operation
Dispersion-based-Clustering copied to clipboard

Some questions

Open Mickeybaby opened this issue 5 years ago • 1 comments

Hello, thank you for your great work. I have benefited a lot from it. I'm a beginner in computer vision and person identification. There are many things I don't understand when I read your code. For example,I didn't understand this function: def linkage_calculation(self, dist, labels, penalty): ...... linkages = linkages.T + linkages - linkages * np.eye(cluster_num) intra = linkages.diagonal() penalized_linkages = linkages + penalty * ((intra * np.ones_like(linkages)).T + intra).T I don't know the details of such code. I am a graduate student in China.Is it convenient for you to leave your mailbox or wechat? I'd like to ask you some questions. Best wishes to you! 祝您一切顺利,生活幸福!

Mickeybaby avatar Jul 29 '19 09:07 Mickeybaby

Hello, thank you for your great work. I have benefited a lot from it. I'm a beginner in computer vision and person identification. There are many things I don't understand when I read your code. For example,I didn't understand this function: def linkage_calculation(self, dist, labels, penalty): ...... linkages = linkages.T + linkages - linkages * np.eye(cluster_num) intra = linkages.diagonal() penalized_linkages = linkages + penalty * ((intra * np.ones_like(linkages)).T + intra).T I don't know the details of such code. I am a graduate student in China.Is it convenient for you to leave your mailbox or wechat? I'd like to ask you some questions. Best wishes to you! 祝您一切顺利,生活幸福!

    你好啊,同学。我也觉得代码和论文有点不太一样,penalized_linkages按照论文来算的话应该不是这样算的,不过如果真的要算的话又要写两层循环(本人水平比较低,想不出用矩阵如何计算,哈哈),这样就会导致计算距离时间特别长。

    不过作者虽然计算了penalized_linkages ,但是后面好像也没用到。。。可能作者没有提交最新代码。也可能是我理解错了,不知道你有什么对代码的新的理解吗?

xiekun2019 avatar Jul 12 '20 12:07 xiekun2019