[mlpack-git] [mlpack/mlpack] Implementation of Multiprobe LSH (#691)

Yannis Mentekidis notifications at github.com
Wed Jun 22 11:13:24 EDT 2016


> +    {
> +      if ( minscore2 > scores[s] && s != minloc) //second smallest
> +      {
> +        minscore2 = scores[s];
> +        minloc2 = s;
> +      }
> +    }
> +
> +    // add or subtract 1 to create second-lowest scoring vector
> +    additionalProbingBins(positions[minloc2], 1) += actions[minloc2];
> +    return;
> +    
> +  }
> +
> +  // sort everything in increasing order
> +  arma::Col<long long unsigned int> sortidx = arma::sort_index(scores);

Yep -  I had trouble when using size_t, the compiler didn't like it. I replaced it with arma::uword. I'm not sure why size_t is not allowed...

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/691/files/fa7f62da6a4cfe7fa45e297d7a4a1491c9c39bb1#r68071780
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160622/223cd5c1/attachment.html>


More information about the mlpack-git mailing list