Definitely, that works for the example, though it then fails for the unit test.
On Mon, Jul 30, 2012 at 1:41 PM, Elena Smirnova <[email protected]>wrote: > OK. But I preferred to modify a couple of lines of MinHashMapper rather > than writing my own spaseVectors generator: > ................... > for (int i = 0; i < numHashFunctions; i++) { > Iterator it = featureVector.iterateNonZero(); > while (it.hasNext()) { > Vector.Element next = (Vector.Element) it.next(); > int value = next.index(); > .................. > > It works fine.
