lyst / lightfm

A Python implementation of LightFM, a hybrid recommendation algorithm.
Apache License 2.0
4.77k stars 691 forks source link

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

Open waeldimassi opened 4 years ago

waeldimassi commented 4 years ago

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

zhangxuejie commented 2 years ago

i got a similar error. any idea how to solve this?