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

How to use the pairwise hinge loss in the models #831

Open
pandaczm opened this issue Sep 2, 2020 · 1 comment
Open

How to use the pairwise hinge loss in the models #831

pandaczm opened this issue Sep 2, 2020 · 1 comment
Labels

Comments

@pandaczm
Copy link

pandaczm commented Sep 2, 2020

Is there any tutorial about how to apply the pairwise hinge loss to these models? Seems that all are related to the pointwise loss, but no pairwise loss.

@faneshion
Copy link
Member

Hi, @pandaczm ,you can refer to this link to see the tutorial (https://github.com/NTMC-Community/MatchZoo-py/blob/master/tutorials/ranking/drmmtks.ipynb).
Most of the typical loss function can be found in matchzoo.losses component, such as:

ranking_task = mz.tasks.Ranking(losses=mz.losses.RankHingeLoss()).

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

No branches or pull requests

2 participants