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

Ryan Curtin notifications at github.com
Tue Jun 21 22:24:21 EDT 2016


>    for (size_t i = 0; i < hashVec.n_elem; i++)
>      hashVec[i] = (double) ((size_t) hashVec[i] % secondHashSize);
>  
>    Log::Assert(hashVec.n_elem == numTablesToSearch);
>  
> +  // Compute hashVectors of additional probing bins
> +  arma::mat hashMat;

Two thoughts:

 * couldn't this be an `arma::Mat<size_t>`?  I'm not sure why the original `hashVec` didn't hold a `size_t` internally.
 * we could probably save a copy and speed things up a little if we never use the original `hashVec` and instead use `hashMat` and set its size to `(T + 1, numTablesToSearch)`.

---
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#r67985870
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160621/9678f27e/attachment.html>


More information about the mlpack-git mailing list