Why some userId has no recommendations?

2014-02-11 Thread jiangwen jiang
Hi, all: I try to user mahout api to make recommendations, but I find some userId has no recommendations, why? here is my code public static void main(String args[]) throws Exception { String inFile = "F:\\hadoop\\data\\recsysinput.txt"; DataModel dataModel = new FileDataModel(new

Why some userId has no recommendations?

2014-02-12 Thread jiangwen jiang
Hi, all: I try to user mahout api to make recommendations, but I find some userId has no recommendations, why? here is my code public static void main(String args[]) throws Exception { String inFile = "F:\\hadoop\\data\\recsysinput.txt"; DataModel dataModel = new FileDataModel(new

Re: Why some userId has no recommendations?

2014-02-12 Thread jiangwen jiang
hi, does anybody have suggestions for this question Thanks! Regards Jiang 2014-02-12 11:25 GMT+08:00 jiangwen jiang : > Hi, all: > > I try to user mahout api to make recommendations, but I find some userId > has no recommendations, why? > > here is my code > public static void main(String args[

Re: Why some userId has no recommendations?

2014-02-12 Thread Koobas
5 should get 107 as a recommendation, whether user-based or item-based. No clue why you're not getting it. On Wed, Feb 12, 2014 at 11:50 PM, jiangwen jiang wrote: > Hi, all: > > I try to user mahout api to make recommendations, but I find some userId > has no recommendations, why? > > here is m

Re: Why some userId has no recommendations?

2014-02-12 Thread Suresh M
user 5 has given rating for all 5 books, So there will be no recommendations for him. On 12 February 2014 08:55, jiangwen jiang wrote: > Hi, all: > > I try to user mahout api to make recommendations, but I find some userId > has no recommendations, why? > > here is my code > public static void

Re: Why some userId has no recommendations?

2014-02-12 Thread jobin wilson
Hi Jiang, Mahout's userbased recommender make use of similarity of a user with other users to arrive at what to recommend to him & in this specific case,uses Pearson correlation coefficient calculated from the user ratings as a similarity measure to form a neighborhood.It then estimates ratings fo

Re: Why some userId has no recommendations?

2014-02-13 Thread Tevfik Aytekin
In some cases users might not get any recommendations. There might be different reasons of this. In your case there is only item 107 which can be recommended to user 5 (since user 5 rated all other items). Item 107 got two ratings which are both 5. In this case pearson correlation between this item

Re: Why some userId has no recommendations?

2014-02-13 Thread Koobas
User 3 gave a recommendation to item 107. User 5 did not rate 107. On Thu, Feb 13, 2014 at 1:57 AM, Suresh M wrote: > user 5 has given rating for all 5 books, > So there will be no recommendations for him. > > > > On 12 February 2014 08:55, jiangwen jiang wrote: > > > Hi, all: > > > > I try to

Re: Why some userId has no recommendations?

2014-02-13 Thread Koobas
I guess you would get a 107 as a recommendation for 5 if you switched to user-based? On Thu, Feb 13, 2014 at 8:21 AM, Koobas wrote: > User 3 gave a recommendation to item 107. > User 5 did not rate 107. > > > On Thu, Feb 13, 2014 at 1:57 AM, Suresh M wrote: > >> user 5 has given rating for all

Re: Why some userId has no recommendations?

2014-02-13 Thread Tevfik Aytekin
You are right Koobas, my answer was on the assumption that item-based NN is used (but I noticed that user-based NN is being used). So my answer is not correct, sorry. Currently, I could not understand the exact reason why user 5 is not getting any recommendations, as you said user 5 should get 107.