NVIDIA-Merlin / models

Merlin Models is a collection of deep learning recommender system model reference implementations
https://nvidia-merlin.github.io/models/main/index.html
Apache License 2.0
262 stars 50 forks source link

Adding ContrastiveOutput #1191

Closed marcromeyn closed 1 year ago

marcromeyn commented 1 year ago

Goals :soccer:

This PR builds on the CategoricalOutput and adds ContrastiveOutput. This can be used with dot-product, categorical-prediction or weight-tying.

Implementation Details :construction:

The contrastive part of CategoricalOutput doesn't work with torch-script, this is fine since it's during training only.

github-actions[bot] commented 1 year ago

Documentation preview

https://nvidia-merlin.github.io/models/review/pr-1191