From b30e6975a22d82f2f82d46d7fa219bdc2eb52870 Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Thu, 2 Jun 2016 09:44:03 -0400 Subject: [PATCH] Remove BuildHash(); simpler cube default. --- src/mlpack/methods/lsh/lsh_search.hpp | 19 +------------------ src/mlpack/methods/lsh/lsh_search_impl.hpp | 5 ----- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/src/mlpack/methods/lsh/lsh_search.hpp b/src/mlpack/methods/lsh/lsh_search.hpp index 9c7c1d6438..7dd321271b 100644 --- a/src/mlpack/methods/lsh/lsh_search.hpp +++ b/src/mlpack/methods/lsh/lsh_search.hpp @@ -118,9 +118,7 @@ class LSHSearch const double hashWidth = 0.0, const size_t secondHashSize = 99901, const size_t bucketSize = 500, - const arma::cube &projection - = arma::zeros(0,0,0) - ); + const arma::cube& projection = arma::cube()); /** * Compute the nearest neighbors of the points in the given query set and @@ -220,21 +218,6 @@ class LSHSearch }; private: - /** - * This function builds a hash table with two levels of hashing as presented - * in the paper. This function first hashes the points with 'numProj' random - * projections to a single hash table creating (key, point ID) pairs where the - * key is a 'numProj'-dimensional integer vector. - * - * Then each key in this hash table is hashed into a second hash table using a - * standard hash. - * - * This function does not have any parameters and relies on parameters which - * are private members of this class, initialized during the class - * initialization. - */ - void BuildHash(const arma::cube &projection); - /** * This function takes a query and hashes it into each of the hash tables to * get keys for the query and then the key is hashed to a bucket of the second diff --git a/src/mlpack/methods/lsh/lsh_search_impl.hpp b/src/mlpack/methods/lsh/lsh_search_impl.hpp index c3734aa2b7..74ac4cc94e 100644 --- a/src/mlpack/methods/lsh/lsh_search_impl.hpp +++ b/src/mlpack/methods/lsh/lsh_search_impl.hpp @@ -518,11 +518,6 @@ Search(const size_t k, std::endl; } -template -void LSHSearch::BuildHash(const arma::cube &projection) -{ -} - template template void LSHSearch::Serialize(Archive& ar,