Skip to content

Conversation

benfred
Copy link
Owner

@benfred benfred commented Jan 24, 2022

In the recommend call, user_items required empty rows to be passed for users that
weren't being recommended - and likewise the similar_items had a item_users param
with the same restriction. When generating recommendations for a single user,
if the userid is large - we'd have to generate a vector with an entry for each smaller userid.

Change this to use the passed in 'userid' array, and just have the rows in the user_items
sparse matrix match those in the userid array.

In the recommend call, user_items required empty rows to be passed for users that
weren't being recommended - and likewise the similar_items had a item_users param
with the same restriction. When generating recommendations for a single user,
if the userid is large - we'd have to generate a vector with an entry for each smaller userid.

Change this to use the passed in 'userid' array, and just have the rows in the user_items
sparse matrix match those in the userid array.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant