tensorflow / tensorflow/recommenders
tfrs.metrics.FactorizedTopK
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2k
- Forks
- 300
- PR merge metrics
- No merged PRs in 30d
Description
hi
when i used this code i seen this error
self.task = tfrs.tasks.Retrieval(
metrics=tfrs.metrics.FactorizedTopK(
candidates=(
movies.batch(128)
.cache()
.map(lambda title: (title, self.movie_model(title)))
)
)
)
error:
ValueError: Cannot convert '('c', 'o', 'u', 'n', 't', 'e', 'r')' to a shape. Found invalid entry 'c' of type '<class 'str'>'.
Exception ignored in: <function AtomicFunction.del at 0x7d6fc6688d60>
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 at tfrs.metrics.FactorizedTopK and reproduce the reported Retrieval configuration with the movies dataset and the shown ValueError. Check the relevant TensorFlow Recommenders and TensorFlow versions; done means identifying the compatibility or implementation cause and documenting or correcting the behavior with a reproducible verification.
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
- Needs clarification
- Newbie friendliness
- 35/100