tensorflow / similarity

TensorFlow Similarity is a python package focused on making similarity learning quick and easy.
Apache License 2.0
1.01k stars 104 forks source link

Added multiple negatives ranking loss #275

Closed abhisharsinha closed 2 years ago

abhisharsinha commented 2 years ago

Added multiple negatives ranking loss as defined in Efficient Natural Language Response Suggestion for Smart Reply. It is useful in cases where all the examples are of positive pairs.

This closes Issue #273

abhisharsinha commented 2 years ago

@owenvallis It needs additions. I'll reopen once done.

owenvallis commented 2 years ago

Thanks for the heads up @abhisharsinha. I just merged in a bunch of formatting changes from the master branch, so you'll likely need to sync your local branch to development.