-
Notifications
You must be signed in to change notification settings - Fork 44
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
Implementation of Centroid Triplet Loss Function #209
Implementation of Centroid Triplet Loss Function #209
Conversation
for more information, see https://pre-commit.ci
❌ Deploy Preview for capable-unicorn-d5e336 failed.
|
❌ Deploy Preview for capable-unicorn-d5e336 failed.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the code indentation is slightly shifted , no change in the logic!
Looks like the build is failing due to formatting issues:
|
@HanClinto |
I can't speak for the maintainers of Quaternion, but Centroid Triplet Loss looks like a very useful function to have -- I would personally be interested in trying it out! |
For now I have deleted the branch. I also thought of implementing n-pair which is apparently better than contrastive and triplet loss. |
Hello Developers,
I have added the code for Centroid Triplet Loss function as an added implementation in the "Loss" folder.
I follows the basic code template, just contains a few changes in the forward function where the The Centroid Triplet Loss aims to learn embeddings (vectors) in such a way that distances between centroids belonging to the same group or cluster are minimized while distances between centroids of different groups are maximized.