You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As seen, getting the item mapped as 0 which is the item 034545104X. And filtering the dataframe, for this item, the book-author is Flesh Tones: A Novel
But When I do this
item_feature_inverse_map = {v:k for k, v in i_f_map.items()}
print(item_feature_inverse_map[343789])
The result is 'M. J. Rose' which is different of Flesh Tones: A Novel.
The text was updated successfully, but these errors were encountered:
Hi @marcosvliras. Were you able to run validations for these mappings on your dataset? If yes, how did you do it? I am also using lightfm dataset mappings, and want to do a similar thing. I need some tips on validating it with our original data/dataframe.
Using the same example from https://making.lyst.com/lightfm/docs/examples/dataset.html#building-the-id-mappings
How could I validade the mapping of each item feature?
When I call
user_id_map, u_f_map, item_id_map, i_f_map = dataset.mapping()
after this
item_features = dataset.build_item_features(((x['ISBN'], [x['Book-Author']]) for x in get_book_features()))
I got this result from item_id_map
Now, I know that '034545104X' is mapped as 0. Looking at item_features built before I got this
Looking at
book_features
as a pandas dataframeAs seen, getting the item mapped as 0 which is the item 034545104X. And filtering the dataframe, for this item, the book-author is
Flesh Tones: A Novel
But When I do this
The result is
'M. J. Rose'
which is different ofFlesh Tones: A Novel
.The text was updated successfully, but these errors were encountered: