[mlpack-git] [mlpack/mlpack] Implementation of Multiprobe LSH (#691)
Ryan Curtin
notifications at github.com
Mon Jun 27 16:05:11 EDT 2016
> + queryCodesNotFloored.unsafe_col(i) = projections.slice(i).t() * queryPoint;
> + queryCodesNotFloored += offsets.cols(0, numTablesToSearch - 1);
> + allProjInTables = arma::floor(queryCodesNotFloored/hashWidth);
> +
> +
> + // Use hashMat to store the primary probing codes and any additional codes
> + // from multiprobe LSH.
> + arma::Mat<size_t> hashMat;
> + hashMat.set_size(T + 1, numTablesToSearch);
> +
> + // Compute the primary hash value of each key of the query into a bucket of
> + // the secondHashTable using the secondHashWeights.
> + hashMat.row(0) =
> + arma::conv_to< arma::Row<size_t> >:: // floor by typecasting to size_t
> + from( secondHashWeights.t() * allProjInTables );
> + // mod to compute 2nd-level codes
Again I feel really pedantic saying this but if this comment can be a complete sentence it would be more clear. :)
---
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#r68645804
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160627/009d1e2c/attachment-0001.html>
More information about the mlpack-git
mailing list