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

Ryan Curtin notifications at github.com
Mon Jun 27 16:01:44 EDT 2016


> +      // Shift operation on Ai (replace max with max+1).
> +      std::vector<bool> As = Ai;
> +      if ( perturbationShift(As) && perturbationValid(As, numProj) )
> +        // Don't add invalid sets.
> +      {
> +        perturbationSets.push_back(As); // add shifted set to sets
> +        minHeap.push( 
> +            std::make_pair(
> +              perturbationScore(As, scores), 
> +              perturbationSets.size() - 1)
> +            );
> +      }
> +
> +      // Expand operation on Ai (add max+1 to set).
> +      std::vector<bool> Ae = Ai;
> +      if ( perturbationExpand(Ae) && perturbationValid(Ae, numProj) ) 

Extra space after the opening parenthesis and before the closing parenthesis.

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


More information about the mlpack-git mailing list