mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jake Mannix <>
Subject Re: Need a little help with using SVD
Date Wed, 30 Mar 2011 02:53:58 GMT
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" <> 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.


On Tue, Mar 29, 2011 at 7:29 AM, Jake Mannix <> wrote:
> > Riding in the cab ...

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message