Skip to content

Commit

Permalink
Remove BuildHash(); simpler cube default.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcurtin committed Jun 2, 2016
1 parent e0b6ce7 commit b30e697
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
19 changes: 1 addition & 18 deletions src/mlpack/methods/lsh/lsh_search.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<arma::cube>(0,0,0)
);
const arma::cube& projection = arma::cube());

/**
* Compute the nearest neighbors of the points in the given query set and
Expand Down Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions src/mlpack/methods/lsh/lsh_search_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,11 +518,6 @@ Search(const size_t k,
std::endl;
}

template<typename SortPolicy>
void LSHSearch<SortPolicy>::BuildHash(const arma::cube &projection)
{
}

template<typename SortPolicy>
template<typename Archive>
void LSHSearch<SortPolicy>::Serialize(Archive& ar,
Expand Down

0 comments on commit b30e697

Please sign in to comment.