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

Ryan Curtin notifications at github.com
Mon Jun 27 16:12:22 EDT 2016


> +  const double hashWidth = 1;
> +  const int secondHashSize = 99901;
> +  const int bucketSize = 500;
> +
> +  // 1 table, projections on orthonormal plane
> +  arma::cube projections(2, 2, 1);
> +  projections(0, 0, 0) = 1;
> +  projections(1, 0, 0) = 0;
> +  projections(0, 1, 0) = 0;
> +  projections(1, 1, 0) = 1;
> +
> +  // construct LSH object with given tables
> +  LSHSearch<> lshTest(rdata, projections,
> +                      hashWidth, secondHashSize, bucketSize);
> +
> +

Extra line

---
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#r68646887
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160627/6596a052/attachment.html>


More information about the mlpack-git mailing list