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

Triplet loss implementation #500

Open
amirj opened this issue May 24, 2021 · 1 comment
Open

Triplet loss implementation #500

amirj opened this issue May 24, 2021 · 1 comment
Labels
feat / loss Loss functions

Comments

@amirj
Copy link

amirj commented May 24, 2021

For a use case, I'm interested to use triplet/hinge loss, looking at the implementation of different losses in Thinc, I can't see something similar. Though there are various implementation in TensorFlow or PyTorch, it's not clear to me how can I leverage them to implement get_grad and get_loss functions.

@kadarakos
Copy link
Contributor

Hey @amirj,

Sorry for the late reply! Currently we do not support the Triplet loss, but you could try out L2Distance and CosineDistance losses. Both losses are applicable in the scenario where you are trying to map two spaces onto the same one. Does this help?

@kadarakos kadarakos added the feat / loss Loss functions label Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / loss Loss functions
Projects
None yet
Development

No branches or pull requests

2 participants