[mlpack-git] [mlpack/mlpack] Implementation of Multiprobe LSH (#691)
Ryan Curtin
notifications at github.com
Mon Jun 27 16:12:09 EDT 2016
> + // 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) );
> +
> + // Searching with 3 additional probing bins should find neighbors
> + lshTest.Search(q1, k, neighbors, distances, 0, 3);
> + cout << neighbors << endl;
> + BOOST_REQUIRE( arma::all(neighbors.col(0) == N || neighbors.col(0) < 10) );
Extra spaces here too... `BOOST_REQUIRE(arma::all(neighbors.col(0) == N || neighbors.col(0) < 10));`
---
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#r68646859
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160627/2a6afa65/attachment.html>
More information about the mlpack-git
mailing list