Yes, in order to recommend users to items, you just have to flip user
IDs and item IDs. Then use whatever algorithm you want. Then you pass
in item IDs, not user IDs, to recommend(). If you were passing item
IDs, without flipping the two, that would be why things don't work.

You are saying you flipped the values, and it works now. What is not
working then -- are you just wondering why you saw no results in that
one case?

On Fri, Nov 27, 2009 at 1:19 AM, Johan Fredholm
<[email protected]> wrote:
> Ok, sorry for being unclear.
> I wrote at the end there in mail 1 "Running recommendations from
> Account (User) doesn't return any
> recommendations at all.". That's the userbased recommender. It didn't
> throw any exceptions like the item-based recommender, but it also
> didn't (and doesn't) return anything. I did flip the values in the
> DataModel for the item-based recommender like you suggested, and it
> now works. The DataModel for the user-based recommender is unchanged.
> So in total for the user-based recommender the code now is:
>

Reply via email to