[mlpack-git] [mlpack/mlpack] Implementation of Multiprobe LSH (#691)
Ryan Curtin
notifications at github.com
Mon Jun 27 16:11:47 EDT 2016
> + LSHSearch<> lshTest(rdata, projections,
> + hashWidth, secondHashSize, bucketSize);
> +
> +
> + // two points near the clusters but outside their bins. q1's lowest scoring
> + // perturbation vectors will map to C1 cluster's bins.
> + arma::mat q1;
> + q1 << 1.1 << arma::endr << 3.3; // vector [1.1, 3.3]
> +
> + arma::Mat<size_t> neighbors;
> + arma::mat distances;
> +
> + // Test that q1 simple search comes up empty
> + lshTest.Search(q1, k, neighbors, distances);
> + cout << neighbors << endl;
> + BOOST_REQUIRE( arma::all(neighbors.col(0) == N) );
Extra spaces here... `BOOST_REQUIRE(arma::all(neighbors.col(0) == N));`
---
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#r68646793
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160627/2031094a/attachment.html>
More information about the mlpack-git
mailing list