[mlpack-git] [mlpack/mlpack] Implementation of Multiprobe LSH (#691)
Ryan Curtin
notifications at github.com
Mon Jun 27 16:07:53 EDT 2016
> @@ -477,6 +933,23 @@ void LSHSearch<SortPolicy>::Search(const arma::mat& querySet,
> if (k == 0)
> return;
>
> + // If the user requested more than the available number of additional probing
> + // bins, set Teffective to maximum T. Maximum T is 2^numProj - 1
> + size_t Teffective = T;
> + if (T > ( (size_t) ( (1 << numProj) - 1) ) )
> + {
> + Teffective = ( 1 << numProj ) - 1;
> + Log::Warn << "Requested " << T <<
> + " additional bins are more than theoretical maximum. Using " <<
> + Teffective << " instead." << std::endl;
I like to make these lines as long as I can by splitting the strings up, and starting new lines with `<<`. Whatever you want to do is fine, but the new lines should at least be indented four characters instead of two.
---
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#r68646190
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160627/a32736bc/attachment-0001.html>
More information about the mlpack-git
mailing list