<p>In <a href="https://github.com/mlpack/mlpack/pull/691#discussion_r68646513">src/mlpack/methods/lsh/lsh_search_impl.hpp</a>:</p>
<pre style='color:#555'>> {
> // This is monochromatic search; the query set is the reference set.
> resultingNeighbors.set_size(k, referenceSet->n_cols);
> distances.set_size(k, referenceSet->n_cols);
> distances.fill(SortPolicy::WorstDistance());
> resultingNeighbors.fill(referenceSet->n_cols);
>
> + // 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;
> + }
> +
> + // If the user set multiprobe, log it
> + if (T > 0)
</pre>
<p>Same here, should we be checking <code>Teffective</code>?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/691/files/71eda99e207a9b91581504e11a9e14d38838bc9f#r68646513">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFJdwUJuZhGL947lzucexJyC6nHGAks5qQC4TgaJpZM4IxQW5">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFNMBlpqt3vE8VqG-pgBz31Ieg4F7ks5qQC4TgaJpZM4IxQW5.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/pull/691/files/71eda99e207a9b91581504e11a9e14d38838bc9f#r68646513"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>