NVIDIA-Merlin / NVIDIA-Merlin/Transformers4Rec
[QST] Cross-entropy and pairwise losses are supported in Next Item Prediction
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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