NVIDIA-Merlin / NVIDIA-Merlin/Transformers4Rec

[QST] Cross-entropy and pairwise losses are supported in Next Item Prediction

Open
#751 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status/needs-triage
Dominant language
Python
Stars
1.3k
Forks
165
Avg merge
1m
Merged PRs (30d)
2

Description

❓ Cross-entropy and pairwise losses are supported in Next Item Prediction

I found the text as following on page https://nvidia-merlin.github.io/Transformers4Rec/stable/model_definition.html?highlight=pairwise%20loss

Next Item Prediction: Predicts next items for a given sequence of interactions. During training, the prediction can be the next item or randomly selected items depending on the masking scheme. For inference, the intended purpose is to always predict the next interacted item. Cross-entropy and pairwise losses are supported.

Could you please tell me how to use pairwise losses instead of Cross-entorpy please?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Next Item Prediction section of the model_definition documentation page linked in the issue and trace how loss selection is exposed in the Python/PyTorch API. Document a concrete pairwise-loss usage example if the feature is supported, or clarify the limitation; done means the page answers how to use pairwise losses instead of cross-entropy.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
documentation, machine-learning
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.