NVIDIA-Merlin / NVIDIA-Merlin/Transformers4Rec
[QST] Not generating labels during training after mapping to empty list
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.3k
- Forks
- 165
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Description
❓ Questions & Help
Details
Following along the example notebooks (TF), I map the training labels to an empty list, as done in the tutorial:
dataloader.map(lambda X, y: (X, []))
However, when I then print out the labels during training they remain empty:
Batch output (y_true) =
Although, the tutorial says: The reason we set the targets to [] in the data-loader because the true item labels are computed internally by the MaskSequence class.
Is there somewhere particular that might be causing this issue that you could suggest?
Thanks!
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 TensorFlow example notebooks and reproduce the dataloader.map(lambda X, y: (X, [])) training flow. Inspect how MaskSequence computes true item labels and compare the observed empty y_true output with the tutorial's expected behavior; done means the cause is identified and the training labels match the documented flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, tensorflow
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100