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

Ryan Curtin notifications at github.com
Mon Jun 27 16:03:12 EDT 2016


> +      {
> +        perturbationSets.push_back(Ae); // add expanded set to sets
> +        minHeap.push(
> +            std::make_pair(
> +              perturbationScore(Ae, scores),
> +              perturbationSets.size() - 1)
> +            );
> +      }
> +
> +    }while (! perturbationValid(Ai, numProj)  );//Discard invalid perturbations
> +
> +    // Found valid perturbation set Ai. Construct perturbation vector from set.
> +    for (size_t pos = 0; pos < Ai.size(); ++pos)
> +      // If Ai[pos] is marked, add action to probing vector.
> +      additionalProbingBins(positions(pos), pvec) 
> +          += Ai[pos] ? actions(pos) : 0;   }

I'm confused here, I am not sure what this closing brace is for.  Maybe it should be on the next line?

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


More information about the mlpack-git mailing list