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 Sat, 04 Jun 2011 03:15:23 GMT
I vaguely remember having trouble with the intersection size method.
Be sure to test it.

On Fri, Jun 3, 2011 at 2:50 PM, Chris Schilling <chris@cellixis.com> wrote:
> I did end up walking the PreferenceArrays side-by-side using the hasPrefWithUserID method.
  I knew I saw an intersection size somewhere, I forgot it was for the FastIDSet.
>
> Thanks for the replies,
> Chris
>
> On Jun 3, 2011, at 2:40 PM, Lance Norskog wrote:
>
>> 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
>
>



-- 
Lance Norskog
goksron@gmail.com

Mime
View raw message