0
votes

I am using mahout taste library for building recommendation engine, I have manually stored userid itemid and rating in preference table which is datamodel to engine, now when new user comes i enter his itemid userid and ratings from code to table..

But when I see recommendation for new userid..i won get result...but for old ids i get..

Why so ...is it related somehow to neighborhoodSize and similaritymodel..

What have to do?

1

1 Answers

0
votes

You need to create the new user through the framework, rather than just inserting the entry in the table. It won't pick up new entries until you refresh() otherwise, and that takes a long time. Instead look at calling setPreference() with the new user and item instead.