Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some questions #3

Open
Mickeybaby opened this issue Jul 29, 2019 · 1 comment
Open

Some questions #3

Mickeybaby opened this issue Jul 29, 2019 · 1 comment

Comments

@Mickeybaby
Copy link

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!
祝您一切顺利,生活幸福!

@xiekun2019
Copy link

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 ,但是后面好像也没用到。。。可能作者没有提交最新代码。也可能是我理解错了,不知道你有什么对代码的新的理解吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants