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.