Jiten,

User and Book ids should be 0,1,2 etc. Plz don't use negative integers. 

Since I don't understand +ve/-ve you mentioned, but if you know which books 
belong to class A/B, you can filter the output correlation matrix yourself to 
get what you want. 

Peng Zhang

--
Sent from my iPhone

> On Jul 11, 2014, at 9:49 AM, "Jiten Gore" <ji...@gores.net> wrote:
> 
> Thanks for your reply, Pat. Here's an illustration:
> 
> The input set looks like this:
> User    Book    Preference
> 1    10    7
> 2    10    4
> 3    10    5
> 1    15    3
> 2    15    8
> 3    15    4
> 1    20    9
> 2    20    2
> 3    20    3
> 1    -1    8
> 2    -1    8
> 3    -1    2
> 1    -2    5
> 2    -2    6
> 3    -2    4
> 1    -3    7
> 2    -3    5
> 3    -4    3
> ...
> 
> For this set for the books (+ve set) I am interested in only the
> recommendations for the Books (-ve set) 
> 
> The desired output (the values are made up):
> Book1    Book2    ρ-value
> 10    -2    0.75
> 10    -3    0.66
> 10    -1    0.41
> 15    -1    0.80
> 15    -2    0.55
> 15    -3    0.21
> 20    -2    0.91
> 20    -1    0.65
> 20    -3    0.47
> 
> Thus, I would *not* like to see the ones like these two:
> 10    20    0.61
> -1    -2    0.73
> 
> Does this help in clarifying? And yes I am interested in Pearson correlation
> and I am using Hadoop.
> 
> Best,
> Jiten
> 
> -----Original Message-----
> From: Pat Ferrel [mailto:pat.fer...@gmail.com] 
> Sent: Thursday, July 10, 2014 1:42 PM
> To: user@mahout.apache.org
> Subject: Re: Recommender question
> 
> Can you rephrase this "I would like to see recommendations for A class books
> only out of those from class B."
> 
> 
> On Jul 10, 2014, at 11:25 AM, Jiten Gore <ji...@gores.net> wrote:
> 
> Dear Mahout community,
> 
> I am running an item based recommender on Mahout and using the Amazon
> paradigm, consider that there are books - two classes of books, one (A)
> coded with +ve ID values and the other (B) with -ve values for ID.
> 
> I would like to see recommendations for A class books only out of those from
> class B. The user ratings structure is the same for both classes.
> 
> I will appreciate any pointers you might have.
> 
> Best,
> Jiten
> 
> Sent from my iPhone
> 
> 
> 

Reply via email to