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

Can you explain the implementation of the disccentroidloss? #47

Closed
tonysy opened this issue Oct 6, 2019 · 2 comments
Closed

Can you explain the implementation of the disccentroidloss? #47

tonysy opened this issue Oct 6, 2019 · 2 comments

Comments

@tonysy
Copy link

tonysy commented Oct 6, 2019

Hi, thanks for your work.
I am confusing about the implementation of the disccentroidloss, could you share the correct mathematical formulation of this loss function. I think the implementation is different from the paper details (equation. 9)

Thanks.

@zhmiao
Copy link
Owner

zhmiao commented Dec 19, 2019

Hello @tonysy , sorry for the late reply! In Eq(9), basically it is positive the distance to corresponding centroids, and negative the distance to other centroids. The only difference is that we not only calculate the distance to centroids but also calculate dot product to centroids for repelling loss. Because we did normalization to the final feature, dot product is just the cosine similarity, another distance metric. We did not specify this in the paper. We will update the paper accordingly. Thanks again.

@zhmiao
Copy link
Owner

zhmiao commented Jan 14, 2020

It has been 26 days since last comment. I will close this issue now. If you have any more questions, please reopen this issue. Thanks.

@zhmiao zhmiao closed this as completed Jan 14, 2020
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