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

Ryan Curtin notifications at github.com
Mon Jun 27 16:11:04 EDT 2016


> +  {
> +    // train a model
> +    LSHSearch<> multiprobeTest(
> +        rdata,
> +        numProj,
> +        numTables,
> +        hashWidth,
> +        secondHashSize,
> +        bucketSize);
> +
> +    double prevRecall = 0;
> +    // search with varying number of probes
> +    for (size_t p = 0; p < probeTrials; ++p)
> +    {
> +      arma::Mat<size_t> lshNeighbors;
> +      arma::mat lshDistances; //move outside of loop for speed?

No need to move it outside the loop, it should not make any noticeable difference.  No need to keep the comment, in my opinion.

---
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/71eda99e207a9b91581504e11a9e14d38838bc9f#r68646696
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160627/2690594f/attachment.html>


More information about the mlpack-git mailing list