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

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


> +    hashMat.zeros(T, numTablesToSearch);
> +
> +    for (size_t i = 0; i < numTablesToSearch; ++i)
> +    {
> +      // construct this table's probing sequence of length T
> +      arma::mat additionalProbingBins;
> +      //arma::vec dummyBins;
> +      //dummyBins.zeros(T, 1);
> +      GetAdditionalProbingBins(allProjInTables.unsafe_col(i),
> +                                queryCodesNotFloored.unsafe_col(i),
> +                                T,
> +                                additionalProbingBins);
> +
> +      // map the probing bin to second hash table bins
> +      hashMat.col(i) = additionalProbingBins.t() * secondHashWeights;
> +      //hashMat.col(i) = dummyBins;

You can probably remove the commented out debugging code :)

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


More information about the mlpack-git mailing list