Hi,
Mahout do not recommend items which are already consumed by the user.

For example,
In the getAllOtherItems method of GenericUserBasedRecommender class there
is the following line

possibleItemIDs.removeAll(dataModel.getItemIDsFromUser(theUserID));

which removes user's items from the possibleItemIDs to prevent these items
from being recommended to the user. This is ok for many recommendation
cases but in my case it is not.

What is the best way to change this behavior, for example I might create a
new class which extends GenericUserBasedRecommender and overwrite the
getAllOtherItems and remove line

possibleItemIDs.removeAll(dataModel.getItemIDsFromUser(theUserID));


Thanks.

Reply via email to