[mlpack-git] [mlpack/mlpack] Modeling LSH For Performance Tuning (#749)

Ryan Curtin notifications at github.com
Sat Aug 13 14:05:07 EDT 2016


> +  // If not specified by user, set these to the ones we trained for.
> +  if (numProjIn == 0)
> +    numProjOut = this->numProj;
> +
> +  if (numTablesIn == 0)
> +    numTablesOut = this->numTables;
> +
> +  if (hashWidthOut == 0.0)
> +    hashWidthOut = this->hashWidth;
> +
> +  LSHSearch<> lsh(*referenceSet, numProjOut, numTablesOut, hashWidthOut,
> +      secondHashSize, bucketSize);
> +
> +  lshObjectVector.push_back(lsh);
> +
> +  return lshObjectVector[lshObjectVector.size() - 1];

Why are you preserving the LSH objects you create?  It seems to me that they aren't used anywhere else.

-- 
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/749/files/cdcb575826bfb3bd0ef4cafacf465435b3d6d144#r74690150
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160813/deaf11ec/attachment.html>


More information about the mlpack-git mailing list