mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Norskog <goks...@gmail.com>
Subject Re: Need a little help with using SVD
Date Wed, 30 Mar 2011 21:39:18 GMT
Also, many Vector implementations have their own Element class. Will
each need a custom comparator?

On Tue, Mar 29, 2011 at 7:53 PM, Jake Mannix <jake.mannix@gmail.com> wrote:
> Hmmm... maybe I'm being paranoid, but iirc, a custom Comparator on
> Vector.Element instances will fail to produce correct results because
> Vector.iterate() reuses Element object instances.  It'll be fast, yes, but
> does your code pass the current unit tests?
>
> I ask because I think I've tried this before... :)
>
> On Mar 29, 2011 5:39 PM, "Timothy Potter" <thelabdude@gmail.com> wrote:
>
> Hi Jake,
>
> Success! I implemented a basic Element Comparator and sorted the random
> vector data before adding to the SequentialAccessSparseVector as you
> recommended and the TransposeJob ripped through my data in about 5 mins! My
> implementation is basic at this point relying on a custom
> Comparator<Element> and Arrays.sort() vs. the optimal way you suggested, but
> gets the job done and is actually pretty fast ... I'll post a patch after
> I've added some test cases for this.
>
> Thanks again for your help.
>
> Cheers,
> Tim
>
> On Tue, Mar 29, 2011 at 7:29 AM, Jake Mannix <jake.mannix@gmail.com> wrote:
>> > Riding in the cab ...
>



-- 
Lance Norskog
goksron@gmail.com

Mime
View raw message