mahout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Owen <sro...@gmail.com>
Subject Re: Possible issue in MinHashMapper
Date Mon, 30 Jul 2012 13:06:13 GMT
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 <esmirnovae@gmail.com>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.

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