lyst / lyst/lightfm

Cannot get MovieLens labels' correctly

Open
#682 2 comments 2 reactions 0 assignees View on GitHub

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.

スクリーンショット 2023-03-23 21 43 28

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!

スクリーンショット 2023-03-23 21 44 14

Contributor guide

No contributing guide indexed for this repository

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.