mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Norskog <goks...@gmail.com>
Subject Re: Intersection of 2 PreferenceArrays
Date Fri, 03 Jun 2011 21:40:40 GMT
One of the methods that returns a PreferenceArray requires the output
be sorted; the rest do not. If it is the sorted output, you can walk
them side-by-side.  Otherwise, what Steven said.

On Thu, Jun 2, 2011 at 1:07 PM, Steven Bourke <sbourke@gmail.com> wrote:
> Your best bet is to probably load the item id's from the recommendations
> from each user  / recommendation list into a FastIDSet. The FastIDSet has an
> intersection size method.
>
> On Thu, Jun 2, 2011 at 7:07 PM, Chris Schilling
> <chris.schilling@gmail.com>wrote:
>
>> Hello,
>>
>> I am trying to do a little bit deeper inspection of some of the
>> recommendations I am seeing.  I was curious if the API exists to return the
>> intersection of 2 PreferenceArray objects.
>>
>> Thanks
>> Chris
>>
>>
>



-- 
Lance Norskog
goksron@gmail.com

Mime
View raw message