NVIDIA-Merlin / NVIDIA-Merlin/Transformers4Rec

[QST] Not generating labels during training after mapping to empty list

Open
#356 2 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

❓ 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.