NVIDIA-Merlin / NVIDIA-Merlin/Transformers4Rec
0.1.16 version creates import errors
Open
Nobody has claimed this yet.
P1
question
- Dominant language
- Python
- Stars
- 1.3k
- Forks
- 165
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Description
- The following import
from transformers4rec.utils.data_utils import save_time_based_splitsraises a ModuleNotFoundError, where utils.data_utils does not exist. This can be solved by usingfrom transformers4rec.data.preprocessing import save_time_based_splits - The following import from
transformers4rec import torch as trraises a TypeErrorTypeError: __new__() missing 1 required positional argument: 'task', explicitly in
2.1. from .model.prediction_task import BinaryClassificationTask, NextItemPredictionTask, RegressionTask
2.2 class BinaryClassificationTask(PredictionTask):
2.3 and at last tm.Precision(num_classes=2),
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
Reproduce both imports from the issue: save_time_based_splits via transformers4rec.utils.data_utils and transformers4rec as tr. Read transformers4rec.data.preprocessing and the prediction-task definitions, especially BinaryClassificationTask and the tm.Precision(num_classes=2) call. Done means the documented imports work in version 0.1.16 without the reported ModuleNotFoundError or TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100