[mlpack-git] master: Add code that replaces multiprobe codes with zeros for bottleneck profiling. Commented it out (d332ea1)
gitdub at mlpack.org
gitdub at mlpack.org
Thu Jun 30 15:11:42 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/eaa7182ebed8cce3fd6191dc1f8170546ea297da...812048c7c6bee0b6c8d936677f23bbb5930c6cfc
>---------------------------------------------------------------
commit d332ea199238c33fd2bf3b8894cda1f461bae51e
Author: Yannis Mentekidis <mentekid at gmail.com>
Date: Mon Jun 13 13:01:55 2016 +0300
Add code that replaces multiprobe codes with zeros for bottleneck profiling. Commented it out
>---------------------------------------------------------------
d332ea199238c33fd2bf3b8894cda1f461bae51e
src/mlpack/methods/lsh/lsh_search_impl.hpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/mlpack/methods/lsh/lsh_search_impl.hpp b/src/mlpack/methods/lsh/lsh_search_impl.hpp
index eb1ca4b..dabf4b0 100644
--- a/src/mlpack/methods/lsh/lsh_search_impl.hpp
+++ b/src/mlpack/methods/lsh/lsh_search_impl.hpp
@@ -618,6 +618,8 @@ void LSHSearch<SortPolicy>::ReturnIndicesFromTable(
{
// construct this table's probing sequence of length T
arma::mat additionalProbingBins;
+ //arma::vec dummyBins;
+ //dummyBins.zeros(T, 1);
GetAdditionalProbingBins(allProjInTables.unsafe_col(i),
queryCodesNotFloored.unsafe_col(i),
T,
@@ -625,7 +627,7 @@ void LSHSearch<SortPolicy>::ReturnIndicesFromTable(
// map the probing bin to second hash table bins
hashMat.col(i) = additionalProbingBins.t() * secondHashWeights;
-
+ //hashMat.col(i) = dummyBins;
for (size_t p = 0; p < T; ++p)
hashMat(p, i) = (double) ((size_t) hashMat(p, i) % secondHashSize);
}
@@ -639,6 +641,7 @@ void LSHSearch<SortPolicy>::ReturnIndicesFromTable(
hashMat.set_size(1, numTablesToSearch);
hashMat.row(0) = hashVec;
}
+ std::cout<<hashMat<<std::endl;
// Count number of points hashed in the same bucket as the query
size_t maxNumPoints = 0;
More information about the mlpack-git
mailing list