lyst / lyst/lightfm

Item id 5863.0 not in item id mapping. Make sure you call the fit method

Open
#570 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.1k
Forks
724
PR merge metrics
No merged PRs in 30d

Description

I got this issue when I run this `dataset.build_interactions(df.iloc[:, 0:3].values)`

> Item id 5863.0 not in item id mapping. Make sure you call the fit method.

The dataset is done successfully with this :
`dataset.fit(
df['user'].unique(), # all the users
df['item'].unique() # all the items
)`

PS : df['user'] and df['item'] are int64

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the dataset.fit and dataset.build_interactions entry points shown in the report, comparing the fitted item IDs with the values and types passed from df.iloc[:, 0:3]. Reproduce the call and trace why item 5863.0 is absent from the mapping; done means the cause is confirmed and the interaction build no longer raises this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.