Re: DenseRowMatrix?

2013-04-18 Thread Ted Dunning
See MAHOUT-1193. Feel free to grab that code, torture it, and tell us if it is any good. If it is useful, we can commit it. On Thu, Apr 18, 2013 at 3:34 PM, Ted Dunning wrote: > I hadn't planned to since I don't have cycles to properly test it. > > Let me see if I can dig it back up to see if

Re: DenseRowMatrix?

2013-04-18 Thread Ted Dunning
I hadn't planned to since I don't have cycles to properly test it. Let me see if I can dig it back up to see if anybody else wants to. SparseMatrix may be good enough for you. On Thu, Apr 18, 2013 at 2:48 PM, Gokhan Capan wrote: > Ted, > > Are you going to commit this? > > > On Thu, Apr 18, 2

Re: DenseRowMatrix?

2013-04-18 Thread Gokhan Capan
Ted, Are you going to commit this? On Thu, Apr 18, 2013 at 5:18 PM, Ted Dunning wrote: > Actually, I built a BlockSparseMatrix some time ago that does this. > > It was just like our current row sparse matrix except that it allowed for > blocks instead of rows. > > It did assume sparse matrices

Re: DenseRowMatrix?

2013-04-18 Thread Ted Dunning
Actually, I built a BlockSparseMatrix some time ago that does this. It was just like our current row sparse matrix except that it allowed for blocks instead of rows. It did assume sparse matrices where the data existed. Worked a charm on the app in question. It doesn't appear that I committed i

Re: DenseRowMatrix?

2013-04-18 Thread Gokhan Capan
Ok, I'll do that. Thank you, Jake. On Thu, Apr 18, 2013 at 4:43 AM, Jake Mannix wrote: > SparseMatrix is implemented as a Map, you could modify > that class to allow you to chose between dense or sparse rows at > construction time. > > > On Wed, Apr 17, 2013 at 4:01 PM, Robin Anil wrote: > >

Re: DenseRowMatrix?

2013-04-17 Thread Jake Mannix
SparseMatrix is implemented as a Map, you could modify that class to allow you to chose between dense or sparse rows at construction time. On Wed, Apr 17, 2013 at 4:01 PM, Robin Anil wrote: > Yes! Yes! Go for it!. > On Apr 17, 2013 5:52 PM, "Gokhan Capan" wrote: > > > I didn't quite get that,

Re: DenseRowMatrix?

2013-04-17 Thread Robin Anil
Yes! Yes! Go for it!. On Apr 17, 2013 5:52 PM, "Gokhan Capan" wrote: > I didn't quite get that, and assuming you tell me to implement it > > Thanks > > > On Thu, Apr 18, 2013 at 1:44 AM, Robin Anil wrote: > > > Make one? > > On Apr 17, 2013 5:37 PM, "Gokhan Capan" wrote: > > > > > Robin, > > >

Re: DenseRowMatrix?

2013-04-17 Thread Gokhan Capan
I didn't quite get that, and assuming you tell me to implement it Thanks On Thu, Apr 18, 2013 at 1:44 AM, Robin Anil wrote: > Make one? > On Apr 17, 2013 5:37 PM, "Gokhan Capan" wrote: > > > Robin, > > > > Aren't SparseRowMatrix rows are sparse vectors? In my use case row > vectors > > don't

Re: DenseRowMatrix?

2013-04-17 Thread Robin Anil
Make one? On Apr 17, 2013 5:37 PM, "Gokhan Capan" wrote: > Robin, > > Aren't SparseRowMatrix rows are sparse vectors? In my use case row vectors > don't need to be sparse, they are either full or empty. > > > On Thu, Apr 18, 2013 at 1:32 AM, Robin Anil wrote: > > > SparseRowMatrix? > > On Apr 17

Re: DenseRowMatrix?

2013-04-17 Thread Gokhan Capan
Robin, Aren't SparseRowMatrix rows are sparse vectors? In my use case row vectors don't need to be sparse, they are either full or empty. On Thu, Apr 18, 2013 at 1:32 AM, Robin Anil wrote: > SparseRowMatrix? > On Apr 17, 2013 5:26 PM, "Gokhan Capan" wrote: > > > Hi, > > > > Using Mahout Matri

Re: DenseRowMatrix?

2013-04-17 Thread Robin Anil
SparseRowMatrix? On Apr 17, 2013 5:26 PM, "Gokhan Capan" wrote: > Hi, > > Using Mahout Matrix interface I want to represent some data where the row > vector is dense iff an instance is associated to this row index, empty > otherwise. The max possible index for rows (a.k.a. rowSize) is defined. >

DenseRowMatrix?

2013-04-17 Thread Gokhan Capan
Hi, Using Mahout Matrix interface I want to represent some data where the row vector is dense iff an instance is associated to this row index, empty otherwise. The max possible index for rows (a.k.a. rowSize) is defined. I never query the matrix by column. I want to be able to add rows if the row