Cannot get MovieLens labels' correctly
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5.1k
- Forks
- 724
- PR merge metrics
- No merged PRs in 30d
Description
Hi!
Thank you for fix #676!
I updated to version 1.17 and tried the tutorial code with the following results.

The label dtype is '
### Suggestion
Probably an error caused by the numpy specification.
I suggest following modifications:
https://github.com/lyst/lightfm/blob/688feded0717f289933b95a0134bad6fbe547331/lightfm/datasets/movielens.py#L75
```
# new
id_feature_labels = np.empty(num_items, dtype=object)
```
In my Notebook, it works!

Contributor guide
No contributing guide indexed for this repository
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 in lightfm/datasets/movielens.py at the item-label array around line 75, then run the MovieLens tutorial code or the reported Notebook example to reproduce the '
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- data, machine-learning
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100