tensorflow / tensorflow/recommenders
Please Help ValueError: Cannot convert '('c', 'o', 'u', 'n', 't', 'e', 'r')' to a shape. Found invalid entry 'c' of type '<class 'str'>'.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2k
- Forks
- 300
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I have been working through the Recommending movies: retrieval tutorial and in the Metrics portion of the jupyter notebook I have been receiving a ValueError: Cannot convert '('c', 'o', 'u', 'n', 't', 'e', 'r')' to a shape. Found invalid entry 'c' of type '<class 'str'>'. Here is the cell that is giving me problems: metrics = tfrs.metrics.FactorizedTopK(
candidates=movies.batch(128).map(movie_model),
)
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 Metrics portion of the “Recommending movies: retrieval” Jupyter notebook and run the shown FactorizedTopK cell in the tutorial environment. Inspect the interaction between movies.batch(128).map(movie_model) and FactorizedTopK; done means the cell runs without the reported shape-conversion ValueError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook, python, tensorflow
- Domain
- documentation, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100