[mlpack-git] [mlpack/mlpack] Implementation of Multiprobe LSH (#691)

Ryan Curtin notifications at github.com
Mon Jun 27 16:09:55 EDT 2016


>  {
>    // 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)

Same here, should we be checking `Teffective`?

---
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#r68646513
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160627/1dbf5017/attachment-0001.html>


More information about the mlpack-git mailing list